We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da77217 commit 5d64454Copy full SHA for 5d64454
index.ts
@@ -244,7 +244,12 @@ export class PythonShell extends EventEmitter{
244
*/
245
static async checkSyntaxFile(filePath:string){
246
247
- let compileCommand = `${this.defaultPythonPath} -m py_compile ${filePath}`
+ let pythonPath:string;
248
+ if (this.defaultOptions.pythonPath) {
249
+ pythonPath = this.defaultOptions.pythonPath;
250
+ } else pythonPath = this.defaultPythonPath;
251
+
252
+ let compileCommand = `${pythonPath} -m py_compile ${filePath}`
253
254
return new Promise<string>((resolve, reject) => {
255
exec(compileCommand, (error, stdout, stderr) => {
0 commit comments