mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
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.
This commit is contained in:
parent
064f1adb78
commit
6519d06b23
1 changed files with 1 additions and 1 deletions
|
@ -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`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue