Skip to content

bpo-32030: Update sys.path[0] earlier for main importer #4868

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

Closed
wants to merge 1 commit into from
Closed

bpo-32030: Update sys.path[0] earlier for main importer #4868

wants to merge 1 commit into from

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Dec 14, 2017

@vstinner
Copy link
Member Author

See also https://bugs.python.org/issue32324 which is related (but not directly) to modified code.

@vstinner
Copy link
Member Author

Side effect of this change: sys.path is now modified before "import readline" when main_importer_path is set.

@vstinner
Copy link
Member Author

Side effect of this change: sys.path is now modified before "import readline" when main_importer_path is set.

Note: in such case, readline is only imported if the -i option is used.

@vstinner
Copy link
Member Author

I'm not sure that this change is correct. I don't understand well of sys.path is used to run the "main" module. Again, see https://bugs.python.org/issue32324

@vstinner vstinner closed this Feb 1, 2018
@vstinner vstinner deleted the path0 branch May 29, 2018 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants