[Tutor] Creating easy-to-run files
Daniel Yoo
dyoo@hkn.EECS.Berkeley.EDU
Fri, 28 Jul 2000 02:13:32 -0700 (PDT)
On Fri, 28 Jul 2000, F Wass wrote:
> I've just started using Python (and found it quite useful) for
> writing a conversion parser between two different formats.
> Is there an easy way of letting the user run the script by
> simply typing "start" or something similar at the Python prompt?
> I'm currently using Windows, but it's intended to be run under
> Linux.
If you're running NT or Win2k, then typing
start.py
may work, although passing in arguments... just doesn't like to work.
Don't know why. Otherwise, the explicit:
python start.py
should do it. You'll probably need to add your python directory into your
PATH. Good luck!