Hi,

You're not dumb. :-) This is a bug which I have fixed in Subversion
already -- someone else reported a similar problem earlier. I should
release 4.0.2 but in the meantime you can grab the latest version from
Subversion.

Anthony

On Thu, Jan 22, 2009 at 3:50 AM, Eric Brunel <[email protected]> wrote:
> 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
>

------------------------------------------------------------------------------
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

Reply via email to