/usr/bin/env python, force a version
Laszlo Zsolt Nagy
gandalf at designaproduct.biz
Thu Oct 6 07:44:30 EDT 2005
manatlan at gmail.com wrote:
>I've got a trouble, and i think that anybody there can help me
>
>I've got a python script which i distribute in somes packages for *nix.
>This script is full of python and need python 2.4 ! And i'd like to
>display a message when the user doesn't have a python2.4 version.
>
>
>>> import sys
>>> sys.version
'2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]'
>>>
There is also
sys.hexversion
sys.api_version
sys.version_info*
Read this:
*http://docs.python.org/lib/module-sys.html
Les
**
More information about the Python-list
mailing list