Message5001
I doubt that too many applications relied on __name__ being set to the
name of the jar file. Besides, it is redundant.
I changed my __run__.py example program to these 3 lines:
import sys
print "sys.argv:", sys.argv
print "__name__:", __name__
The result:
sys.argv: ['jython.jar']
__name__: jython.jar
So if they need to get the name of the jar file being executed, they can
always get it out of sys.argv[0] |
|
Date |
User |
Action |
Args |
2009-08-06 19:26:07 | dhandy | set | messageid: <1249586767.75.0.396452679425.issue1418@psf.upfronthosting.co.za> |
2009-08-06 19:26:07 | dhandy | set | recipients:
+ dhandy, fwierzbicki, leosoto |
2009-08-06 19:26:07 | dhandy | link | issue1418 messages |
2009-08-06 19:26:07 | dhandy | create | |
|