瀏覽代碼

- update Ifc parser generator script to assert if !python3

Alexander Gessler 12 年之前
父節點
當前提交
19c9683b5f
共有 1 個文件被更改,包括 4 次插入0 次删除
  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'