argv[0] manipulation
Jp Calderone
exarkun at meson.dyndns.org
Sat Dec 14 18:17:36 EST 2002
On Sat, Dec 14, 2002 at 05:55:13PM +0100, Bernhard Herzog wrote:
> [snip]
> Then the documentation is wrong, or at least misleading :)
> [snip]
import sys
sys.argv.insert(0, 'A Man, A Plan, A Canal Panama')
import yourModule
yourModule.function() # Hope it doesn't depend on sys.argv[0]
Jp
--
"If you find a neighbor in need, you're responsible for serving that
neighbor in need, you're responsible for loving a neighbor just like you'd
like to love yourself." -- George W. Bush, Sept. 16, 2002
--
12:00am up 4 days, 22:17, 4 users, load average: 0.08, 0.09, 0.04
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20021214/ea9e19f7/attachment.sig>
More information about the Python-list
mailing list