From: Werner F. B. <wer...@fr...> - 2010-05-18 08:54:31
|
On 18/05/2010 00:46, Jeremy Conlin wrote: > On Mon, May 17, 2010 at 4:31 PM, Daryl Tester > <dt-...@ha...> wrote: >> Jeremy Conlin wrote: >> >>> myPython.py includes some code to add CP to sys.path so it finds the >>> right modules. >> >> Did you do the same with setup.py? > > Of course I *should* have tried that but didn't. I just changed my > setup.py to include the change to the sys.path and it almost works. > The only thing it didn't include is the 'CustomData.txt' file. This > file is necessary for execution. Do you know how to include that file > as well? I have tried the following (that didn't work): > > setup(console=..., > data_files = ('CP\\CP2', ['CP\\CP2\\CustomData.txt']), IIRC this has to be an absolute path, e.g. > data_files = ('CP\\CP2', ['c:\\path to\\CP\\CP2\\CustomData.txt']), > ... Werner |