-
Notifications
You must be signed in to change notification settings - Fork 1
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
PYTHONPATH not honored (not even for sub-interpreters) #16
Comments
That's an interesting one ... I extended your second to last test a bit and switched to
... the two variables are clearly passed on: This behavior has its origin in the fact that I forgot the full backstory of the pth-file - i.e. why I needed it in the first place - and I did not put it into the comments. My mistake. I'll to trace the commit(s) back. It was once part of another package, |
This was an issue with |
For our use-case, it would be sufficient to override |
@eudoxos I need to look into if (how) this is possible. In the meantime, have you tried deleting the |
I am trying to run python interpreter with modified sys.path. This is normally done by setting the PYTHONPATH environment variable. I understand wenv cannot do this due to path translation when called from Linux shell:
But now I have a script running under wenv, which runs a child python process, wanthing to pass it some paths through its environment
PYTHONPATH
. This work both under Linux and under Windows, but not under wenv. The one-liner is like this (explanation: the main python calls another python as subprocess, passing it PYTHONPATH through an argument tosubprocess.call
):As I checked,
sys.executable
is correct in the main interpreter:Any ideas?
The text was updated successfully, but these errors were encountered: