Use OS-agnostic filesystem paths in Python

This will eventually need to be done for #1908
This commit is contained in:
Corey Farwell 2015-09-08 21:15:07 +02:00
parent ca36779a7e
commit 244af42d89
4 changed files with 26 additions and 26 deletions

View file

@ -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'),
]