aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/GlobalGen.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/GlobalGen.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/GlobalGen.py')
-rw-r--r--components/script/dom/bindings/codegen/GlobalGen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/bindings/codegen/GlobalGen.py b/components/script/dom/bindings/codegen/GlobalGen.py
index 4d564aab0ac..6a83d069e02 100644
--- a/components/script/dom/bindings/codegen/GlobalGen.py
+++ b/components/script/dom/bindings/codegen/GlobalGen.py
@@ -6,9 +6,9 @@
# and generate information for subsequent phases.
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 WebIDL
import cPickle
from Configuration import Configuration
@@ -66,7 +66,7 @@ def main():
('RegisterBindings', 'RegisterBindings.rs'),
('InterfaceTypes', 'InterfaceTypes.rs'),
('InheritTypes', 'InheritTypes.rs'),
- ('Bindings', 'Bindings/mod.rs'),
+ ('Bindings', os.path.join('Bindings', 'mod.rs')),
('UnionTypes', 'UnionTypes.rs'),
]