[Distutils] small improvement of the script functionality under
win32
M.-A. Lemburg
mal at egenix.com
Mon Apr 4 22:46:52 CEST 2005
[Lots of different techniques to trick Windows/DOS into starting
a Python script]
It is becoming rather obvious that the python -x trick is not
sufficient for Windows/DOS.
Wouldn't it be a lot cleaner if we invented a new command line
switch to provide whatever parsing technique is necessary in
order to provide a truely clean solution with everything in
one file ?
E.g. perhaps we need something like:
-X n : skip the first n lines in support of OS specific startup code
And then:
@echo off
pathtopython -X 4 scriptfilenamehere %0 %1 ...
exit
# Start of Python code
[program code goes here]
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Apr 04 2005)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
More information about the Distutils-SIG
mailing list