Skip to content

Commit

Permalink
Fix SConstruct on Python 3 (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 authored and jacob1 committed Oct 7, 2017
1 parent 97c4123 commit c0bb588
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 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")

Expand Down

0 comments on commit c0bb588

Please sign in to comment.