-
Notifications
You must be signed in to change notification settings - Fork 233
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
Do not change PYTHONPATH or sys.path on workers #397
Do not change PYTHONPATH or sys.path on workers #397
Conversation
09703cb
to
94a35b2
Compare
channel = channel # noqa | ||
workerinput, args, option_dict = channel.receive() | ||
importpath = os.getcwd() | ||
sys.path.insert(0, importpath) # XXX only for remote situations | ||
os.environ["PYTHONPATH"] = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only after archeology ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough.
The only archaeology I could find is this one: #376 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
based on this not having it breaks remote workers, and tox is completely unusable to feed those as tox never got that part done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets limit the path chnges explicitly to execnet specs where popen is none
94a35b2
to
f8d51aa
Compare
Based on: #396
Fix #376