Home Download Buy Blog Forum Support

How to run python scripts in python.exe

How to run python scripts in python.exe

Postby Daftatt on Tue Nov 29, 2011 4:46 am

Hey, can anyone tell me how to launch a .py file into the python console?
Daftatt
 
Posts: 25
Joined: Tue Nov 29, 2011 2:28 am

Re: How to run python scripts in python.exe

Postby guillermooo on Tue Nov 29, 2011 5:08 am

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

http://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
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am


Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 26 guests