[issue14208] No way to recover original argv with python -m
Tim Golden
report at bugs.python.org
Wed Jan 23 11:03:18 CET 2013
Tim Golden added the comment:
My use case is the reloader or restarter. I've initially fallen foul of this when using the cherrypy reloader (which does an execv by building from sys.executable + sys.argv) but I also have web services running which I'd like to restart remotely by forcing them to execv themselves.
It's trivial to retrieve the original command line from the Windows API, shlex.split it and pass it along to execv so this is hardly a showstopper. But it would be useful to have something equivalent built-in.
----------
nosy: +tim.golden
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14208>
_______________________________________
More information about the Python-bugs-list
mailing list