Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrepareVenv.py cannot handle paths with spaces or parens #8

Open
MichaelTiemannOSC opened this issue Nov 8, 2024 · 0 comments
Open

Comments

@MichaelTiemannOSC
Copy link

If you try to run this script from a POSIX root that has spaces in filenames (such as "/Users/michael/Dropbox/My Mac (MacBook-Pro.local)/") the run_command function will fail (as will several subsequent things).

A workaround is to clone the root into an environment without such characters in the root.

A path for a fix is to change the interface to use the subprocess module (see PEP 324).

shlex makes a mess of things because the quotes it uses to protect bash are quotes that are mis-interpreted by os.* commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant