Announce: PythonLauncher v1.01 Released

Mikael Lyngvig mikael.lyngvig at toolwood.dk
Sat Aug 19 19:38:40 EDT 2000


PythonLauncher v1.01 has been released with full source code.

Changes from v1.00:
1. Replaced MSVC executable with MINGW32 GCC executable
contributed by Piet van Oostrum (piet at cs.uu.nl).  This executable is
only 4 Kbytes in size (the MSVC executable was 13 Kbytes in size).
2. Renamed build.bat to build-msvc.bat.
3. Added build-gcc.bat.
4. Added history.txt document.

It can be downloaded from
http://www.toolwood.dk/freeware/PythonLauncher.

PythonLauncher.exe is a small program, which attempts to locate a
Python script named similarly to itself, then locate a Python
interpreter, and finally invoke the Python interpreter with the Python
script, and any parameters to the .exe itself, as parameters.

For instance, if you copy PythonLauncher.exe to foo.exe and run it
using "foo bar", it will attempt to locate foo.py, foo.pyc, or
foo.pyo.  If that succeeds, it will attempt to locate python.exe,
cgipython.exe, or pythonw.exe.  If that succeeds, it will invoke the
found Python interpreter with the parameters "fullpath\foo.py bar"
(where fullpath is replaced by the full path of the foo.py script).

The Python script and interpreter are searched in the following
locations:

1. The home directory of the PythonLauncher executable (the home
directory of foo.exe).

2. The directory defined by PYTHONHOME, if such an environment
variable exists.

3. The directories defined in the PATH environment variable.

Unlike batch files, PythonLauncher works fine with redirection.  

The license is (very) similar to that of Python itself; you can freely
modify, redistribute, whatever the program and its source code as long
as the original copyright notice is retained and you don't blame
Toolwood for any problems.


Sincerely,

Mikael Lyngvig
Toolwood




More information about the Python-list mailing list