![]() |
|
|
+ Search |
![]()
|
Oct 4th, 2003 17:33
Knud van Eeden,
---------------------------------------------------------------------- --- Knud van Eeden --- 19 February 2002 - 09:31 pm ------------------- TSE: Language: Computer: Compile: Python: How to run Python from TSE v2.5? --- Steps: Overview: 1. make sure you have Python installed, so that e.g. Python.exe can be found on your computer e.g. goto URL: http://www.python.org 2. create a batchfile 'comPYTHON.bat', containing this text (adapt it to your system) and store this batchfile in your TSE directory (e.g. save to c:\mytsedirectory\comPython.bat) @rem in general: @rem @rem @mydrive\mypath\myPythonexecutable.exe %3 @rem @pause @rem @exit @rem @c:\python22\python.exe %3 @pause @exit 3. Adapt the compiler information (in TSE, after loading any file, press <SHIFT><F9> then 'D' for debug compiler setup then <ALT><C> to copy one of the compiler settings present then change the fields: 'Extension' to: .py 'Description' to: Python 'Command' to: c:\mytsedirectory\comPython.bat &name& &ext& &fn& > &output& make sure this information is permanently stored in the compiler information (via <ENTER>, then <ESCAPE>) 4. If you now load a .Python file, fill in some program code for Python, for example type or copy this text in a file 'mytest.py' print "Hello world" save that text in your TSE directory, then press <CTRL><F9> or <ESCAPE><M><C> to compile, this will run that batch file, which runs Python.exe with your file as parameter --- --- Internet: see also: Computer: Wordprocessor: TSE: Language: Computer: Compile: Run: Overview http://www.faqts.com/knowledge_base/view.phtml/aid/24311/fid/895 ----------------------------------------------------------------------