Message292632
Because sys module is correctly imported, we can modify sys.path to change the import behave.
Add new PR 1364 for this.
This add a new private function `_fix_import_path` that will remove the local import path `''`, when running IDLE from command line, it will recover the import path at the end of the argparse part. So no need to worry about user to import other local modules.
That also mean, if our user has the same name file, they will not be able to import it anymore. (cause IDLE import it first). |
|
Date |
User |
Action |
Args |
2017-04-30 14:51:11 | louielu | set | recipients:
+ louielu, terry.reedy, mdcowles |
2017-04-30 14:51:11 | louielu | set | messageid: <1493563871.84.0.759107879612.issue26143@psf.upfronthosting.co.za> |
2017-04-30 14:51:11 | louielu | link | issue26143 messages |
2017-04-30 14:51:11 | louielu | create | |
|