Peter Otten wrote:
rbt wrote:
Is there a recommended or 'Best Practices' way of checking the version
of python before running scripts? I have scripts that use the os.walk()
feature (introduced in 2.3) and users running 2.2 who get errors.
Instead of telling them, 'Upgrade you Python Install, I'd l
"rbt" <[EMAIL PROTECTED]> wrote:
> Is there a recommended or 'Best Practices' way of checking the version of
> python before running
> scripts? I have scripts that use the os.walk() feature (introduced in 2.3)
> and users running 2.2
> who get errors. Instead of telling them, 'Upgrade you Pyth
Josef Meile wrote:
What's about:
>>> import sys
>>> print sys.version_info
(2, 1, 3, 'final', 0)
Python 1.5.2 (#1, Mar 3 2001, 01:35:43) [GCC 2.96 2731 (Red
Hat Linux 7.1 2 on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import sys
>>> sys.version_info
Trace
Is there a recommended or 'Best Practices' way of checking the version
of python before running scripts? I have scripts that use the os.walk()
feature (introduced in 2.3) and users running 2.2 who get errors.
Instead of telling them, 'Upgrade you Python Install, I'd like to use
sys.version or s
F. Petitjean wrote:
Le Tue, 05 Apr 2005 08:57:12 -0400, rbt a écrit :
Is there a recommended or 'Best Practices' way of checking the version
of python before running scripts? I have scripts that use the os.walk()
feature (introduced in 2.3) and users running 2.2 who get errors.
Instead of tellin
rbt wrote:
Is there a recommended or 'Best Practices' way of checking the version
of python before running scripts? I have scripts that use the os.walk()
feature (introduced in 2.3) and users running 2.2 who get errors.
Instead of telling them, 'Upgrade you Python Install, I'd like to use
sys.v
Le Tue, 05 Apr 2005 08:57:12 -0400, rbt a écrit :
> Is there a recommended or 'Best Practices' way of checking the version
> of python before running scripts? I have scripts that use the os.walk()
> feature (introduced in 2.3) and users running 2.2 who get errors.
> Instead of telling them, 'Upg
rbt wrote:
> Is there a recommended or 'Best Practices' way of checking the version
> of python before running scripts? I have scripts that use the os.walk()
> feature (introduced in 2.3) and users running 2.2 who get errors.
> Instead of telling them, 'Upgrade you Python Install, I'd like to use