From c0bb5882b4b21b7bfd59735526f31eb7baaa65e8 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Sat, 7 Oct 2017 17:31:05 -0400 Subject: [PATCH] Fix SConstruct on Python 3 (#513) --- SConstruct | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SConstruct b/SConstruct index ef4dda1e0..7b3152052 100644 --- a/SConstruct +++ b/SConstruct @@ -1,4 +1,10 @@ +import sys #run generator.py +if sys.version_info[0] >= 3: + def execfile(path): + with open(path, 'r') as f: + exec(f.read()) + if not GetOption('clean'): execfile("generator.py")