Using Python To Launch Python
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Tue Jul 15 04:28:12 EDT 2008
En Mon, 14 Jul 2008 21:39:20 -0300, Derek Martin <code at pizzashack.org>
escribió:
> On Mon, Jul 14, 2008 at 05:40:43PM -0400, Aquil H. Abdullah wrote:
>> You've hit the proverbial nail with the hammer. The problem is that my
>> application needs to run under both the Linux and Windows OSs, so while
>> I
>> would love to use a nice sh, csh, or bash shell script. My hands are
>> tied
>> because Windows does not provide such wonderful shells.
>
> *Provides*, no... neither does it provide Python, for what that's
> worth. But you can certainly get it (bash):
>
> http://win-bash.sourceforge.net/
Using the standard cmd.exe, the previously posted shell script becomes:
=== begin appname.cmd ===
set INSTALLPATH=<wherever app is installed>
call %INSTALLPATH%\bin\python %INSTALLPATH%\APPNAME.py %*
=== end appname.cmd ===
--
Gabriel Genellina
More information about the Python-list
mailing list