Fix SConstruct on Python 3 (#513)

This commit is contained in:
wolfy1339 2017-10-07 17:31:05 -04:00 committed by jacob1
parent 97c4123533
commit c0bb5882b4

View File

@ -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")