Message300978
| Author |
ncoghlan |
| Recipients |
Arfrever, brett.cannon, eric.snow, ezio.melotti, mattheww, ncoghlan, vaultah |
| Date |
2017年08月29日.09:27:06 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1503998826.53.0.907873794346.issue16217@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Regarding directories and zipfiles, runpy._run_module_as_main also handles those - the CLI effectively transforms directory and zipfile execution into a "python -m __main__" call with a suitably adjusted sys.path[0] entry (i.e. the given directory or zip archive, rather than the current directory). |
|