Re: [IronPython] Two Problems with sys.argv and compiled scripts

2009-03-23 Thread Michael Foord
Bruce Bromberek wrote: So if I follow your lead at http://www.voidspace.org.uk/ironpython/custom_executable.shtml it looks like I need to modify this code to call my complied DLL instead of the pythonsource code? string path = Path.Combine( Path.GetDirectoryName(Ap

Re: [IronPython] Two Problems with sys.argv and compiled scripts

2009-03-23 Thread Bruce Bromberek
So if I follow your lead at http://www.voidspace.org.uk/ironpython/custom_executable.shtml it looks like I need to modify this code to call my complied DLL instead of the pythonsource code? string path = Path.Combine( Path.GetDirectoryName(Application.ExecutablePath),

Re: [IronPython] Two Problems with sys.argv and compiled scripts

2009-03-23 Thread Michael Foord
Bruce Bromberek wrote: Problem #1 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 #Program.py # import clr clr.AddReference('mscorlib') clr.AddRefere

[IronPython] Two Problems with sys.argv and compiled scripts

2009-03-23 Thread Bruce Bromberek
Problem #1 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 #Program.py # import clr clr.AddReference('mscorlib') clr.AddReference('System') import sys imp