mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-22 07:53:00 +02:00
Fix SConstruct on Python 3 (#513)
This commit is contained in:
@@ -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