aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/BindingGen.py
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-09-08 21:15:07 +0200
committerCorey Farwell <coreyf@rwell.org>2015-09-08 21:16:02 +0200
commit244af42d89f310665d4737644d4335924d87716d (patch)
treea3be0522e90f3a92b6ffb4155c9301dacb8b21a6 /components/script/dom/bindings/codegen/BindingGen.py
parentca36779a7e8298918b21ae243a43a71b1520119b (diff)
downloadservo-244af42d89f310665d4737644d4335924d87716d.tar.gz
servo-244af42d89f310665d4737644d4335924d87716d.zip
Use OS-agnostic filesystem paths in Python
This will eventually need to be done for #1908
Diffstat (limited to 'components/script/dom/bindings/codegen/BindingGen.py')
-rw-r--r--components/script/dom/bindings/codegen/BindingGen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/codegen/BindingGen.py b/components/script/dom/bindings/codegen/BindingGen.py
index 0649db6f1f9..5debf3e1f0f 100644
--- a/components/script/dom/bindings/codegen/BindingGen.py
+++ b/components/script/dom/bindings/codegen/BindingGen.py
@@ -3,9 +3,9 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import sys
-sys.path.append("./parser/")
-sys.path.append("./ply/")
import os
+sys.path.append(os.path.join(".", "parser"))
+sys.path.append(os.path.join(".", "ply"))
import cPickle
from Configuration import Configuration
from CodegenRust import CGBindingRoot, replaceFileIfChanged