On 9 January 2014 13:23, Ben Robinson <ben-robin...@nc.rr.com> wrote:

> I am a newbie - could you recommend/direct how to best fix this issue?


I think the easiest thing is to ensure that the executable has the correct
permissions set after it's copied. That means it will still work if
something modifies the permission bits on the base executable after
installation.

Find the file freezer.py in the cx_Freeze source code, and the
_FreezeExecutable method inside that:
https://bitbucket.org/anthony_tuininga/cx_freeze/src/default/cx_Freeze/freezer.py#cl-153

There's already code in there that ensures that user write permission is
set - that's the lines starting with "if not os.access(...". We want to do
the same for execute permission. Modify the code, then reinstall cx_Freeze,
and try freezing something to see if the issue is fixed. If you're
comfortable with it, you can make a pull request on Bitbucket with your
changes:

https://bitbucket.org/anthony_tuininga/cx_freeze

Thanks,
Thomas
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to