Re: [python-win32] Next step trying to include extra/external file in py2exe output

2011-05-24 Thread Tim Roberts
Jacob Kruger wrote: > #error text from console window > raise ImportError, "No module named " + qname > ImportError: No module named c:\temp\pythonScripts\mapDataFn > > Should I rather copy that file to somewhere else, and then just tell it to > do something like: > "includes" : ["mapDataFn"]

Re: [python-win32] Next step trying to include extra/external file in py2exe output

2011-05-24 Thread Tim Roberts
Jacob Kruger wrote: > Ok, then why is it not picking up that the 2 files are in fact in same > folder at the time when I'm running the setup.py? > > All I have in the main file is the following in case that's an issue?: > > from mapDataFn import fnTakeItem If you have main.py, setup.py, and mapDa

Re: [python-win32] Next step trying to include extra/external file in py2exe output

2011-05-24 Thread Tim Roberts
Jacob Kruger wrote: > Ok, when I now type in the following command: > python setup.py py2exe > ... > It seems to be generating the following exception/error, based on the line > where I assume I'm trying to tell it to include the contents of the file, > mapDataFn.py? > > #error text from console

[python-win32] Next step trying to include extra/external file in py2exe output

2011-05-24 Thread Jacob Kruger
Ok, when I now type in the following command: python setup.py py2exe with the following code in setup.py: #start code from glob import glob from distutils.core import setup import py2exe data_files = [("Microsoft.VC90.CRT", glob(r'C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Micros