I added "import sys" in source file "freezer.py" and my app started on both
systems:
EXTENSION_LOADER_SOURCE = \
"""
import imp, os, sys
found = False
for p in sys.path:
if not os.path.isdir(p):
continue
f = os.path.join(p, "%s")
if not os.path.exists(f):
continue
try:
m = imp.load_dynamic(__name__, f)
except ImportError:
del sys.modules[__name__]
raise
import sys # <------- added
__name__ = 'PyQt4.QtCore'
sys.modules[__name__] = m
found = True
break
if not found:
del sys.modules[__name__]
raise ImportError("No module named %%s" %% __name__)
"""
I'm not sure that it's rigth fix, but it's working.
New question:
App started with console window in Windows. How can this be avoided?
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users