We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 768c6bc + 5789f41 commit c65cdc0Copy full SHA for c65cdc0
lib/main.js
@@ -79,11 +79,15 @@ class PythonLanguageClient extends AutoLanguageClient {
79
}
80
81
let pythonBin = atom.config.get("ide-python.python") || "python3"
82
+
83
+ // replace $PIPENV_PATH in the path
84
+ pythonBin = replacePipEnvPathVar(pythonBin, venvPath)
85
86
+ // check if it exists
87
if (whichSync(pythonBin, { nothrow: true }) === null) {
88
pythonBin = "python"
89
-
- this.python = replacePipEnvPathVar(pythonBin, venvPath)
90
+ this.python = pythonBin
91
92
const childProcess = super.spawn(this.python, ["-m", this.getPyLs()], {
93
cwd: projectPath,
0 commit comments