Browse Source

- update Ifc parser generator script to assert if !python3

Alexander Gessler 12 years ago
parent
commit
19c9683b5f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      scripts/IFCImporter/CppGenerator.py

+ 4 - 0
scripts/IFCImporter/CppGenerator.py

@@ -44,6 +44,10 @@
 
 import sys, os, re
 
+if sys.version_info < (3, 0):
+    print("must use python 3.0 or greater")
+    sys.exit(-2)
+
 input_template_h = 'IFCReaderGen.h.template'
 input_template_cpp = 'IFCReaderGen.cpp.template'