From a0e12214722476f4d1b7f29f2c8c4b11dcd6fad4 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 6 Jul 2010 14:30:31 +0000 Subject: complain if running with py2 --- source/blender/makesrna/rna_cleanup/rna_cleaner.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/blender/makesrna/rna_cleanup') 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() -- cgit v1.2.3