servo: Merge #10791 - Blind attempt at fixing a Python import error on Windows (from servo:explicit-python-path); r=KiChjang
authorSimon Sapin <simon.sapin@exyr.org>
Thu, 21 Apr 2016 17:26:11 -0700
changeset 338586 63f1ea7ba63e75286918220376615435d4fdafb2
parent 338585 18f78fde988a32b94602e0d0137c188c37bed7e8
child 338587 afc9690e74e56a8b818fd238fe4e85bde0e75a65
push id31307
push usergszorc@mozilla.com
push dateSat, 04 Feb 2017 00:59:06 +0000
treeherdermozilla-central@94079d43835f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersKiChjang
servo: Merge #10791 - Blind attempt at fixing a Python import error on Windows (from servo:explicit-python-path); r=KiChjang See #10789. Source-Repo: https://github.com/servo/servo Source-Revision: b080da474f78a9689f3a6c64cc4091e425e2eb62
servo/components/style/properties/build.py
--- a/servo/components/style/properties/build.py
+++ b/servo/components/style/properties/build.py
@@ -3,16 +3,17 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 import json
 import os.path
 import sys
 
 BASE = os.path.dirname(__file__)
 sys.path.insert(0, os.path.join(BASE, "Mako-0.9.1.zip"))
+sys.path.insert(0, BASE)  # For importing `data.py`
 
 from mako import exceptions
 from mako.lookup import TemplateLookup
 from mako.template import Template
 
 import data