-
Notifications
You must be signed in to change notification settings - Fork 72
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
gftools no longer supports spaces in working directory path #869
Comments
The problem is here:
|
I guess sys.executable needs to be quoted ... you can steal this from nanoemoji: https://github.com/googlefonts/nanoemoji/blob/fb4b0b3e10f7197e7fe33c4ae6949841e4440397/src/nanoemoji/util.py#L167-L176 (we actually have the same bug 😄 ) |
I can update my implementation to that, sure 👍 Edit: ah, looks |
in theory adding the "" should work most of the time, but one could potentially have not only spaces in the sys.executable path, but even quotes! I know, pathologic right? I actually just tried on my mac to create a new folder named |
it's built-in https://docs.python.org/3/library/shlex.html |
I don't see much point complicating the code to support cases which break the environment we're trying to run the code in... :-) |
Story of my life with Python 😆 I'm too used to Rust I've updated the PR, thanks for providing the reference
Yeah that's fair, but Marc's reviewed the PR and asked for it so I don't think it hurts here. I'll open a PR for bash next /s |
it's probably not bash itself at fault but the venv/bin/activate shell script which may not be escaping the quotes in its path. |
Minor issue of course, seemingly I'm the only person that bothers to make nice looking folder names lol
Updating a project I'm working on from v0.9.36 to v0.9.52
If I get some more time I'll try to track down where this is, but for now I'm filing this issue so I don't forget :)
The text was updated successfully, but these errors were encountered: