Managing Python Script File Extensions Under Hosting Configuration 2.0
Print this Article
Comment on this Article
Last Updated:
June 17, 2011 12:28 PM
Hosting accounts running Hosting Configuration 2.0 and above have the option of running Python versions 2.3 and 2.4. Files running under different versions of Python can all use the same .py extension if the version is specified in the script itself. To specify the version, type one of the following at the top of a Python script:
Python 2.3
#!/usr/bin/python2.3
Python 2.4
#!/usr/bin/python2.4