[prev in list] [next in list] [prev in thread] [next in thread] 

List:       py2exe-users
Subject:    Re: [Py2exe-users] Py2exe and two python files
From:       "Werner F. Bruhin" <werner.bruhin () free ! fr>
Date:       2011-06-09 12:27:26
Message-ID: isqe7i$47n$1 () dough ! gmane ! org
[Download RAW message or body]

On 06/09/2011 01:18 PM, Jonathan Kossick wrote:
> Hello, I have some problems with py2exe because I have two python files
> in the same directory which i want to compile with py2exe. The result
> should be two exe files.
> Everythink works fine ehen I use the normal
> procedure(http://www.py2exe.org/index.cgi/Tutorial) for both python files.
> The problem is that I get some errors when I want to run my new exe
> files because the programm can't import some modules (couldn't find them).
>
> Both python files have to be in the same directory because they partly
> use the same modules which are located in subfolders.
> Is there a way to compile both files in the same procedure? Or another
> solution?
Yes, you can compile multiple files with the same setup.py, i.e.:

     console = [GUI2Exe_Target_2],
     windows = [GUI2Exe_Target_1, GUI2Exe_Target_3]

See also here:
http://wiki.wxpython.org/Deployment
http://wiki.wxpython.org/py2exe-python25

Werner


------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Py2exe-users mailing list
Py2exe-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/py2exe-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic