What do I use on linux to make a python program executable

I just installed a linux system (Kubuntu) and was wondering if there is a program to make python programs executable for linux.

Answers


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

Need Your Help

Interested in unit testing with a static framework, similar to FuelPHP, but not sure where to start

php unit-testing static

As the title says, I'm trying to understand how to unit test (or maybe some other sort of test) a framework that is built similar to FuelPHP where you utilize static calls to set and access everyth...

Javascript addEventListener to add a textbox on a click?

javascript dom javascript-events

I need to be able to click on some text (id="txt") and fire an event which replaces that text with a textbox...currently I have this code:

Get the least significant bit of a number in Scheme

scheme bit-manipulation

How do I get the least significant bit of a (whole) number in Scheme?