diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-06 18:30:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-06 18:30:31 +0400 |
commit | a0e12214722476f4d1b7f29f2c8c4b11dcd6fad4 (patch) | |
tree | b7eb5368084899a274da293bd6e70bfd3e2e76ab /source/blender/makesrna/rna_cleanup/rna_cleaner.py | |
parent | 513c8738ce77fa445c5c5eb1b19fa778a52d215a (diff) |
complain if running with py2
Diffstat (limited to 'source/blender/makesrna/rna_cleanup/rna_cleaner.py')
-rwxr-xr-x | source/blender/makesrna/rna_cleanup/rna_cleaner.py | 6 |
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() |