This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/intern/python/modules/mcf/utils/ver.py

18 lines
465 B
Python
Raw Normal View History

2002-10-12 11:37:38 +00:00
'''
Module giving a float representation
of the interpreter major version (1.4, 1.5 etceteras)
ver -- Float representation of the current interpreter version
Note: Since I no longer have any Python 1.4 modules, this module is
no longer in use by me. I intend to leave it here for the next version
jump :) .
'''
import regex, sys, string
ver = string.atof(sys.version[:regex.match('[0-9.]*', sys.version)])
### Clean up namespace
del(regex)
del(sys)
del(string)