Message234560
| Author |
amaury.forgeotdarc |
| Recipients |
amaury.forgeotdarc, berker.peksag, gennad, georg.brandl, ncoghlan, oquanox, pitrou, rock |
| Date |
2015年01月23日.15:44:48 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1422027888.95.0.860786132822.issue21862@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This change will cause the module to be imported twice:
progname = runpy.run_module(args[0])['__file__']
... and then the runctx() call.
What about something like:
code = "runpy.run_module(modname, run_name='__main__')"
globs = { 'runpy': runpy, 'modname': args[0] } |
|