[IronPython] Modifying The PYC Stub EXE
bruce.bromberek at gmail.com
Mon Apr 6 22:18:58 CEST 2009
I had a similar problem in that the EXE stub built by pyc does not work as
expected. My problem was the sys.argv being set to None. As someone who
comes to ironpython from Cpython, I want the ironpython equivalent of py2exe
where everything just works :)
The best advice I've found here is to build your own C# stub exe (thanks
For my own purposes, I'm going with a two step process. PYC to create the
DLL of my script and imported modules. And C# stub that hosts ironpython,
loads all the assemblies, and calls my Main().
Now looking at your sample code, I wonder if part of the problem is that you
do not have references to the assemblies that the Ironpython console loads
by default. Of course I could be wrong on everything.
On Sun, Apr 5, 2009 at 5:54 AM, Davy Mitchell <daftspaniel at gmail.com> wrote:
> Hi Folks,
> I am looking to modify the EXE stub generated by PYC so that it will set
> the current working directory to the location of the EXE
> before loading its assemblies.
> The problem I am having is I build my EXE to a sub-folder called BUILD. If
> I call it in the form .\build\die.exe then it can't find the DLLs.
> This can be worked around with shortcuts setting the working dir etc but
> having this option in code in PYC would be useful.
> Forgive me if I am very very muddled up about something :-)
> Davy Mitchell
> Users mailing list
> Users at lists.ironpython.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users