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 vstinner
Recipients brett.cannon, ncoghlan, steve.dower, vstinner
Date 2017-12-14.16:13:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513268018.48.0.213398074469.issue32324@psf.upfronthosting.co.za>
In-reply-to
Content
"python3 directory" and "python3 testzip.zip" are implemented by calling runpy._run_module_as_main("__main__", set_argv0). Currently, sys.path is modified before calling _run_module_as_main().

Would it be possible to pass an additional path to importlib to import __main__, without modifying sys.path?
History
Date User Action Args
2017-12-14 16:13:38vstinnersetrecipients: + vstinner, brett.cannon, ncoghlan, steve.dower
2017-12-14 16:13:38vstinnersetmessageid: <1513268018.48.0.213398074469.issue32324@psf.upfronthosting.co.za>
2017-12-14 16:13:38vstinnerlinkissue32324 messages
2017-12-14 16:13:38vstinnercreate