Hi, cx_Freezes uses up to three possible sources for the modules,
checking this order:

1) the executable itself (tacked on the end of it)
2) a file with the same name as the executable with a .zip extension
in the same directory as the executable
3) a file named "library.zip" in the same directory as the executable

The relevant code for this is in Common.c (GetImporter function)

The way to determine which will be used is via the
--append-script-to-exe option
--create-shared-zip option
--include-in-shared-zip option

See the documentation for a little more information on this. If you're
still having trouble, let me know. Thanks.

Anthony

On Sun, Sep 13, 2009 at 9:36 AM, Cor Bos <c...@ceboservice.nl> wrote:
> Hi,
>
> Is there a way to rename the library.zip to a name derived from the
> executable like MyApp.exe and MyApp.zip.
> Py2Exe offers a renaming option but I couldn't find anything alike for
> CxFreeze.
>
> I want to use two separate executables in the same folder. But as both
> executables use the name "library.zip" and that won't work.
>
> I've tried to concatenate the library.zip to the executable but that
> didn't work and renaming the library.zip gives an zipimport error on
> Linux. On windows it seems to work with a modified Console.py.
>
> Any help would be welcome.
>
> Cor
>
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> cx-freeze-users mailing list
> cx-freeze-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to