diff options
Diffstat (limited to 'build_files/cmake/project_source_info.py')
-rw-r--r-- | build_files/cmake/project_source_info.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build_files/cmake/project_source_info.py b/build_files/cmake/project_source_info.py index d4b48ccd859..a39ed94bd69 100644 --- a/build_files/cmake/project_source_info.py +++ b/build_files/cmake/project_source_info.py @@ -25,6 +25,14 @@ __all__ = ( "SOURCE_DIR", ) + +import sys +if not sys.version.startswith("3"): + print("\nPython3.x needed, found %s.\nAborting!\n" % + sys.version.partition(" ")[0]) + sys.exit(1) + + import os from os.path import join, dirname, normpath, abspath |