diff options
author | Xidorn Quan <me@upsuper.org> | 2016-07-08 17:15:54 +1000 |
---|---|---|
committer | Xidorn Quan <me@upsuper.org> | 2016-07-08 18:51:05 +1000 |
commit | 6519d06b235858376c16807cee579171b77e3535 (patch) | |
tree | f98e9056982eaf25a8f1cc229cdde330e9875cc9 | |
parent | 064f1adb78dc4967809ffc232837a823253780fa (diff) | |
download | servo-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.py | 2 |
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` |