diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-09-08 21:15:07 +0200 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-09-08 21:16:02 +0200 |
commit | 244af42d89f310665d4737644d4335924d87716d (patch) | |
tree | a3be0522e90f3a92b6ffb4155c9301dacb8b21a6 /components/script/dom/bindings/codegen/GlobalGen.py | |
parent | ca36779a7e8298918b21ae243a43a71b1520119b (diff) | |
download | servo-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.py | 6 |
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'), ] |