[IronPython] Two Problems with sys.argv and compiled scripts
bruce.bromberek at gmail.com
Mon Mar 23 22:14:57 CET 2009
I know this is a know issue, but my google-fu has been able to uncover the
solution. When I compile my script into an exe , sys.argv get sets to ' '.
Using SharpDevelop and Ironpython 2.0.1
if __name__ == 'Program':
print "sys.argv = ",sys.argv
except System.Exception, e:
yeilds output of
C:\Program Files\IronPython 2.0.1\Samples\pyc>Program.exe fred
sys.argv = ['']
instead of the expected
If I drag and drop a file onto the exe, I get a exception message that I
can't see. In IronPython 1.0, the dropped file would populate sys.argv
Hopefully someone can answer or direct me to better source.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users