Help with Installer.

Gordon McMillan gmcm at hypernet.com
Tue Feb 12 10:08:43 EST 2002


Maciej Starzyk wrote:

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

[snip]

> Does anyone know how it can be fixed ?

The only way I know of (and boy, I hope I've
missed something!) is to install the executable
on the user's PATH. It should be able to find
itself, at the expense of some hunting and pecking.

-- Gordon
http://www.mcmillan-inc.com/



More information about the Python-list mailing list