Python is a powerful file and text processing language available on many platforms. Python is an ideal extension to the TCC batch language, especially if you need advanced string processing capabilities.

 

The Python language is not built into TCC, and must be obtained separately. The version supported by TCC is ActivePython (free from www.activestate.com). TCC supports version 3.1, 2.6, and 2.5. (TCC will search for the Python dll's in that order.)

 

You must enable Python support in the OPTION / Startup page. If it is enabled, TCC will automatically load a Python interpreter when it starts. If a suitable library is found, TCC checks to see if you are running a .PY file. If so, TCC passes the file to your Python interpreter for processing.

 

See also: the @PYTHON, @LUA, @PERL, @REXX and @RUBY functions.