Hello all,
Maybe I'm dumb, but I can't figure out how to make the targetName
option in Executable work. I'm basically just trying to have an
executable which doesn't have the same name as the original script. So
I created a foo.py, and wrote the following setup script:
--------------------------------------
from cx_Freeze import setup, Executable
setup(
name = "bar",
version = "0.1",
description = "Test for targetName option",
executables = [Executable("foo.py", targetName='bar')]
)
--------------------------------------
The build seems to work ok, but when I'm trying to run the generated
executable, named bar, I get:
Traceback (most recent call last):
File
".../lib/python2.6/site-packages/cx_Freeze/initscripts/Console.py",
line 28, in <module>
code = importer.get_code(moduleName)
zipimport.ZipImportError: can't find module 'bar__main__'
What am I doing wrong?
--
- Eric Brunel
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users