[python-win32] Next step trying to include extra/external file in py2exe output
Tim Roberts
timr at probo.com
Tue May 24 19:23:23 CEST 2011
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 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"]
Yes. When you run py2exe, all of the modules you need should be laid
out on disk exactly as they would if you were running the script. The
"includes" list, as you see, runs an "import" statement on the modules
you name.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list