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

@ -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