py2exe: python modules and applicaation

vedrandekovic at gmail.com vedrandekovic at gmail.com
Wed Jan 23 11:37:15 EST 2008


Hello again,

I'am working a simple application with wxpython, py2exe and
directpython.After I write python code in my wxpython  textctrl, then
my application must save that code and create ( pgssetup2.py script ),
and then with py2exe create (.exe) of the code. ( my application is
builded with py2exe too ). Here is example of code the converts
from .py to .exe:

try:
 
process2=subprocess.Popen(["python","pgssetup2.py","py2exe","-
d","exe"],shell=True, stdout=subprocess.PIPE)
            stdout_value = process2.communicate()[0]
        except NameError,e:
            print e


When I run this code before converting to exe it works fine but
in .exe there is no error but It wont work. I think it's problem with
modules py2exe and directpython how can I "append" that modules to my
application?

Regards,
Vedran



More information about the Python-list mailing list