Commits

Daniel Blankenberg  committed 4b62ed4

Use check_python() to verify python version in set_metadata.py instead of hardcoded minimum version check.

  • Participants
  • Parent commits 4ce1891

Comments (0)

Files changed (1)

File scripts/set_metadata.py

 log = logging.getLogger( __name__ )
 
 import os, sys, cPickle
-assert sys.version_info[:2] >= ( 2, 4 )
+# ensure supported version
+from check_python import check_python
+try:
+   check_python()
+except:
+   sys.exit(1)
 
 new_path = [ os.path.join( os.getcwd(), "lib" ) ]
 new_path.extend( sys.path[1:] ) # remove scripts/ from the path