Help with Installer.

Maciej Starzyk mac at ceti.pl
Tue Feb 12 07:15:59 EST 2002


Here is the problem:

I generated a single-directory program with the
McMillan Installer.
When I launch the executable from bash, it works OK, 
however, when run as a shebang line in a shell script it 
fails to start. It says it cannot open the archive. 

It does not seem to be fault of the Installer, though.

It looks like bash cuts off the full path to the 
executable, when run as a shebang. The main() function
receives as parameters something like:

argv[0] = the_exe
argv[1] = /path/to/script/my_script

And the shebang line in my_script is:
#! /path/to/exe/my_exe

Does anyone know how it can be fixed ?
Thanks in advance, 
Maciek



 



More information about the Python-list mailing list