Skip to content

Commit

Permalink
Merge pull request #12 from vkmb/master
Browse files Browse the repository at this point in the history
Fix hardcoded Python path

Thanks to @vkmb for this contribution!
  • Loading branch information
twibiral authored May 22, 2022
2 parents 7435741 + 3814c7a commit b9ea8c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export default class ExecuteCodePlugin extends Plugin {
.then(() => {
const args = this.settings.pythonArgs ? this.settings.pythonArgs.split(" ") : [];
args.push(tempFileName);
const child = child_process.spawn("python", args)
const child = child_process.spawn(this.settings.pythonPath, args)
this.handleChildOutput(child, outputter, button, tempFileName);
})
.catch((err) => {
Expand Down

0 comments on commit b9ea8c1

Please sign in to comment.