Skip to content

Commit

Permalink
Replace windows path sep with unix sep
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
upsuper committed Jul 8, 2016
1 parent 064f1ad commit 6519d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/style/properties/build.py
Expand Up @@ -6,7 +6,7 @@
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`

Expand Down

0 comments on commit 6519d06

Please sign in to comment.