1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-30 04:50:08 +00:00

Merge pull request #639 from InvisibleUp/master

Allow for scons to run on Python 3
This commit is contained in:
Thomas Harte 2019-08-03 08:51:45 -04:00 committed by GitHub
commit b96972a4b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,10 @@
import glob
import sys
# establish UTF-8 encoding
reload(sys)
sys.setdefaultencoding('utf-8')
# establish UTF-8 encoding for Python 2
if sys.version_info < (3, 0):
reload(sys)
sys.setdefaultencoding('utf-8')
# create build environment
env = Environment()