Is there a way on a mac to make it so when you click on a python script it runs python filename.py through terminal?

2 Answers 2


Yes, this is possible with multiple methods. The easiest is simply right-clicking the script, opening the Get Info window and changing Open With to Python Launcher (x.x.x).


According to the Python Documentation: 4.1.1. How to run a Python script, you can set "Python Launcher" to your default program which uses pythonw. This assumes you have Leopard or later.

  • But that opens a bunch of other windows
    – Shameer
    Oct 2, 2011 at 3:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .