aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXidorn Quan <me@upsuper.org>2016-07-08 17:15:54 +1000
committerXidorn Quan <me@upsuper.org>2016-07-08 18:51:05 +1000
commit6519d06b235858376c16807cee579171b77e3535 (patch)
treef98e9056982eaf25a8f1cc229cdde330e9875cc9
parent064f1adb78dc4967809ffc232837a823253780fa (diff)
downloadservo-6519d06b235858376c16807cee579171b77e3535.tar.gz
servo-6519d06b235858376c16807cee579171b77e3535.zip
Replace windows path sep with unix sep
It seems python in msys2 has some weird behavior. For __file__, it returns a string which uses windows-style separator '\', however, os.path.dirname only recognizes the unix-style separator '/', and consequently, the path of Mako is not added properly.
-rw-r--r--components/style/properties/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/properties/build.py b/components/style/properties/build.py
index 28a9b59019f..eeb78817f3f 100644
--- a/components/style/properties/build.py
+++ b/components/style/properties/build.py
@@ -6,7 +6,7 @@ import json
import os.path
import sys
-BASE = os.path.dirname(__file__)
+BASE = os.path.dirname(__file__.replace('\\', '/'))
sys.path.insert(0, os.path.join(BASE, "Mako-0.9.1.zip"))
sys.path.insert(0, BASE) # For importing `data.py`