Converting .py files to batch files.

r0g at
Wed Sep 17 18:46:33 CEST 2008

Michael Palmer wrote:
> On Sep 15, 3:04 pm, Matias Surdi <matiassu... at> wrote:
>> aditya shukla escribió:
>>> How can we convert .py files to batch files? is there any library for this?
>>> Aditya
>>> ------------------------------------------------------------------------
<snip>> On Linux, you would instead insert the shebang line that points to
> your python interpreter, such as
> #!/usr/bin/python
> at the top and also set the executable bit, but I suppose if you use
> Linux at all you know that.

Doh! I'm new to Linux and so I didn't know that, thanks!
One small snag though, it doesn't work on my system :-(
I did both steps, the shebang and the execute bit but nada...

r0g at steppa:~/Desktop/py$ ls
r0g at steppa:~/Desktop/py$
bash: command not found

Any ideas why this might be? A path thing? I'm on Ubuntu 8.04 / Py2.5



More information about the Python-list mailing list