views:

1152

answers:

2

Hi, I just installed a linux system (Kubuntu) and was wondering if there is a program to make python programs executable for linux. Thanx in advance :)

+10  A: 

Just put this in the first line of your script :

#!/usr/bin/env python

Make the file executable with

chmod +x myfile.py

Execute with

./myfile.py
Vincent Van Den Berghe
A: 

Already answered here http://stackoverflow.com/questions/193077/...

Andrew Beyer
No, it's not answered there. That question queries about distribution issues.
ΤΖΩΤΖΙΟΥ