-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
virtual environments created via relative paths on Windows creates bad console executables #1552
Comments
An example of this can be seen in our own CIs zipapp/readme tox environments. |
There is an undocumented I suggest passing the Path object through a |
In my experience resolve is much more reliable in resolving symlinks, so I prefer that; I'm just also invoking absolute which I'm fine, already submitted via #1550 |
The only case I know of where Can you give an example of the issue? It feels like we might be over-complicating the solution, or missing the actual problem, here 🙁 |
@pfmoore that is the case here 👍; if you pass in a relative path that does not exist the world breaks on Windows; it's actually very subtle because things work while you start console scripts from the same folder as one yoy created from.. but breaks with other cwd. |
Ah, OK. Thanks for the clarification. Apologies that I couldn't find that information for myself. |
Oh and I'm happy to switch back to |
Seems https://docs.python.org/3/library/pathlib.html#pathlib.Path.resolve does not generate the absolute path on Windows, but does everywhere else.
The text was updated successfully, but these errors were encountered: