py2exe 0.5.0 and data_files

Ulrich Goertz u at g0ertz.de
Sat Mar 20 18:03:28 EST 2004


Thomas Heller <theller at python.net> writes:
> Ulrich Goertz <u at g0ertz.de> writes:
> > Now I have the data files which I need in the data_files list given
> > as an argument to the setup method, and py2exe does copy them to
> > the dist subdirectory all right. However, sys.path[0] is not the 
> > path where the program resides, but the path + 'library.zip'.

> There is a sample 'hello.py' in the py2exe\samples\simple subdirectory,
> which lets you explore the differences between the normal Python script,
> and the executable.  I don't have time now - more later.

Thanks for the pointer! I had briefly looked at the setup.py script in 
samples/simple before, but not at hello.py itself ... 

Thanks for writing py2exe, and kind regards,

Ulrich



More information about the Python-list mailing list