This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author louielu
Recipients louielu, mdcowles, terry.reedy
Date 2017-04-30.14:51:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493563871.84.0.759107879612.issue26143@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2017-04-30 14:51:11louielusetrecipients: + louielu, terry.reedy, mdcowles
2017-04-30 14:51:11louielusetmessageid: <1493563871.84.0.759107879612.issue26143@psf.upfronthosting.co.za>
2017-04-30 14:51:11louielulinkissue26143 messages
2017-04-30 14:51:11louielucreate