SetupTools: Bug in launcher.c causing gui_scripts not to launch?
When installing a gui_script on WinXP I get the error: Could not exec #!c:\Python24\pythonw.exe". It looks like the shebang hasn't been stripped. In http://svn.python.org/projects/sandbox/trunk/setuptools/launcher.c (currently at r59407) should if (is_gui) { /* Use exec, we don't need to wait for the GUI to finish */ execv(python, (const char * const *)(newargs)); return fail("Could not exec %s", python); /* shouldn't get here! */ } read something like: if (is_gui) { /* Use exec, we don't need to wait for the GUI to finish */ execv(ptr, (const char * const *)(newargs)); return fail("Could not exec %s", ptr); /* shouldn't get here! */ } as in /* We *do* need to wait for a CLI to finish, so use spawn */ return spawnv(P_WAIT, ptr, (const char * const *)(newargs)); so that the "#!" is stripped from the executable? Thanks, Alex
Has anyone had a change to look at this? Thanks! Alex On Dec 7, 2007 3:15 PM, Alexander Michael <lxander.m@gmail.com> wrote:
When trying to run a gui_script on WinXP I get the error:
Could not exec #!c:\Python24\pythonw.exe".
It looks like the shebang hasn't been stripped. In
http://svn.python.org/projects/sandbox/trunk/setuptools/launcher.c
(currently at r59407) should
if (is_gui) { /* Use exec, we don't need to wait for the GUI to finish */ execv(python, (const char * const *)(newargs)); return fail("Could not exec %s", python); /* shouldn't get here! */ }
read something like:
if (is_gui) { /* Use exec, we don't need to wait for the GUI to finish */ execv(ptr, (const char * const *)(newargs)); return fail("Could not exec %s", ptr); /* shouldn't get here! */ }
as in
/* We *do* need to wait for a CLI to finish, so use spawn */ return spawnv(P_WAIT, ptr, (const char * const *)(newargs));
so that the "#!" is stripped from the executable?
Thanks, Alex
participants (1)
-
Alexander Michael