From: Thomas H. <th...@py...> - 2004-06-18 11:24:12
|
"Bruno Santos" <bms...@gm...> writes: > Hi Tacao, > > Thanks for your prompt answer, but unfortunatly is still not working. > All the glob does is to easy the copy of ".py" or ".pyc" files into the > subdirectory "pool". > > It fails when I try to import a .py file stored in the "pool" module directory. > > try: > myModule = __import__("pool.classnode", globals(), locals(), ["getNodeInfo"]) > except ImportError, aError: > print aError > > So, I get a error message of : "No module named pool.classnode" > > This makes me beleive that it is something related in the way that py2exe stores > the module information. Therefore I'm still stucked with the same problem. I think it is because the *only* entry in sys.path is the library.zip file. See <http://starship.python.net/crew/theller/moin.cgi/Py2exeEnvironment> You should probably in your script check for the sys.frozen attribute, and extend sys.path yourself. Thomas |