Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-11-19 04:01:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-19 04:01:10 +0400
commit658552715140ef0e6f3be02c900260f99615344e (patch)
tree13a0616fe3f19f83794ec78d55d32b41003f658e /build_files/cmake/project_info.py
parentd88262a1bfe0ccd960852ba058c3db98b9be2719 (diff)
add python3 checks to avoid confusion from errors with python2.
Diffstat (limited to 'build_files/cmake/project_info.py')
-rwxr-xr-xbuild_files/cmake/project_info.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/build_files/cmake/project_info.py b/build_files/cmake/project_info.py
index 7162b324f94..dca41849a49 100755
--- a/build_files/cmake/project_info.py
+++ b/build_files/cmake/project_info.py
@@ -44,7 +44,14 @@ __all__ = (
"project_name_get"
)
+
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, splitext, exists