bpo-32030: Update sys.path[0] earlier for main importer by vstinner · Pull Request #4868 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.8k
Closed
Conversation
Member
the-knights-who-say-ni
added
the
CLA signed
label
bedevere-bot
added
the
awaiting merge
label
vstinner
added
the
skip news
label
vstinner
commented
Dec 14, 2017
vstinner commented
Member Author
See also https://bugs.python.org/issue32324 which is related (but not directly) to modified code.
vstinner
commented
Dec 14, 2017
vstinner commented
Member Author
Side effect of this change: sys.path is now modified before "import readline" when main_importer_path is set.
vstinner
commented
Dec 14, 2017
vstinner commented
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
commented
Dec 14, 2017
vstinner commented
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
closed this
vstinner
deleted the
path0
branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment