Sublime Forum

How to run python scripts in python.exe

#1

Hey, can anyone tell me how to launch a .py file into the python console?

0 Likes

#2

To run external programs, you need to use build systems:

sublimetext.info/docs/en/core/build_systems.html

Sublime Text 2 ships with one for Python you can find in Tools > Build system > Python. To run the current file with it, just press F7.

If you want to see the output in a system’s console, you will need to write your own build system, though.

HTH,
Guillermo

0 Likes