R: [Tutor] Creating easy-to-run files
Marcel Preda
marcel@punto.it
Fri, 28 Jul 2000 11:04:37 +0200
> Hi,
>
Hi
> 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.
>
From comand [or shell] prompt, type :
python script_name
For linux only:
In the script the first line must be:
#!/path_to/python
And you may call just like:
script_name
PM