From: Bruno S. <bms...@gm...> - 2004-06-18 09:15:44
|
Hi all, I've developped a small application in Python and, I'm trying to use py2exe to convert it into an executable. My application has a root directory where the main script is along with a few others. Then, when executed it loads all the ".py" or ".pyc" files stored in module "pool" from the root directory. The idea is that later on, other users can extend future files that will be used by the main application stored in the root directory. When converted into an executable, somehow I'm no longer able to load the .py files from module pool. I've tryed several ways, but with no success. Here is my setup.py configuration: # setup.py from distutils.core import setup import py2exe setup( version = "0.3.5", author="Bruno Santos ", author_email="bm...@gm...", # targets to build console = ["beefBuilder.py"], scripts = ["Node.py", "DataNode.py", "datanodegui.py", "gui.py" ], data_files=[("images", ["images/BeefBuilder.ico", "images/add-arrow.bmp", "images/add-node.bmp", "images/subtract.bmp", "images/struct-a-file.gif", "images/export.bmp", "images/new.bmp", "images/open.bmp", "images/save.bmp", "pool/classnode.py", "pool/switchnode.py"]) ], ) Any idea why? Regards, -- Bruno Santos mailto:bms...@gm... "Treat people as they ought to be, and you will help them become what they are capable of being." - Goethe Grupo GMV SA. --------------------------------------------------------------------- Isaac Newton, 11 - PTM - Tres Cantos - 28760 Madrid --------------------------------------------------------------------- Phone: 91-8072100 Ext:3362 Fax: 91-8072199 --------------------------------------------------------------------- http://www.gmv.com http://www.gmv.es http://www.gmvsistemas.com http://www.sgi.es --------------------------------------------------------------------- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. |