bpo-32030: Update sys.path[0] earlier for main importer#4868
Conversation
|
See also https://bugs.python.org/issue32324 which is related (but not directly) to modified code. |
Sorry, something went wrong.
|
Side effect of this change: sys.path is now modified before "import readline" when main_importer_path is set. |
Sorry, something went wrong.
Note: in such case, readline is only imported if the -i option is used. |
Sorry, something went wrong.
|
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 |
Sorry, something went wrong.
https://bugs.python.org/issue32030