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>2010-07-06 18:30:31 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-07-06 18:30:31 +0400
commita0e12214722476f4d1b7f29f2c8c4b11dcd6fad4 (patch)
treeb7eb5368084899a274da293bd6e70bfd3e2e76ab /source/blender/makesrna/rna_cleanup
parent513c8738ce77fa445c5c5eb1b19fa778a52d215a (diff)
complain if running with py2
Diffstat (limited to 'source/blender/makesrna/rna_cleanup')
-rwxr-xr-xsource/blender/makesrna/rna_cleanup/rna_cleaner.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/makesrna/rna_cleanup/rna_cleaner.py b/source/blender/makesrna/rna_cleanup/rna_cleaner.py
index 2f2fabd6d6c..52bd59a6bba 100755
--- a/source/blender/makesrna/rna_cleanup/rna_cleaner.py
+++ b/source/blender/makesrna/rna_cleanup/rna_cleaner.py
@@ -274,5 +274,9 @@ def main():
if __name__=='__main__':
- main()
+ import sys
+ if not sys.version.startswith("3"):
+ print("Incorrect python version, use python 3!")
+ else:
+ main()