Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork4.1k
fix(issue 2950): properly handle spaces in file paths when invoking commands#2951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
detjonmataj commentedJul 13, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I think we should set Edit: |
Uh oh!
There was an error while loading.Please reload this page.
Summary
Make subprocess calls safer when using commands containing paths with spaces and ensure they run with the current Python interpreter.
Changes
"python"/"python3"withsys.executablefor interpreter consistency.shellparameter totry_execute()to setshell=Falseinsubprocess.Popenwhen passing commands as a list of args.Related Issue
Closes#2950.