Fix SConstruct on Python 3 (#513)
This commit is contained in:
parent
97c4123533
commit
c0bb5882b4
@ -1,4 +1,10 @@
|
|||||||
|
import sys
|
||||||
#run generator.py
|
#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'):
|
if not GetOption('clean'):
|
||||||
execfile("generator.py")
|
execfile("generator.py")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user