summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-05-31 03:23:33 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-05-31 03:23:33 (GMT)
commita420014e771d33e2514c0b4f3fc98d3085026a08 (patch)
treecba9afc5621fcd29d6e5c83abfceebc4599756f9 /src/engine
parent4c3ee7a72f6793ee01a164f8460ae65a40746e22 (diff)
downloadSCons-a420014e771d33e2514c0b4f3fc98d3085026a08.zip
SCons-a420014e771d33e2514c0b4f3fc98d3085026a08.tar.gz
SCons-a420014e771d33e2514c0b4f3fc98d3085026a08.tar.bz2
PY2/3 Ensure system root is not unicode on py2
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/SCons/Platform/win32.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/SCons/Platform/win32.py b/src/engine/SCons/Platform/win32.py
index a735899..0e9e01f 100644
--- a/src/engine/SCons/Platform/win32.py
+++ b/src/engine/SCons/Platform/win32.py
@@ -287,6 +287,10 @@ def get_system_root():
raise
except:
pass
+
+ # Ensure system root is a string and not unicode
+ # (This only matters for py27 were unicode in env passed to POpen fails)
+ val = str(val)
_system_root = val
return val