sys path modifications working not only on imports, but on everything

This commit is contained in:
David Halter
2012-09-14 04:03:32 +02:00
parent 9a2ec13230
commit 444e4fd466
4 changed files with 56 additions and 45 deletions

View File

@@ -3,9 +3,10 @@ import os
import sys
import re
import traceback
from os.path import abspath, dirname
os.chdir(os.path.dirname(os.path.abspath(__file__)) + '/..')
sys.path.append('.')
sys.path.append(abspath(dirname(abspath(__file__)) + '/..'))
os.chdir(dirname(abspath(__file__)) + '/..')
from _compatibility import unicode, BytesIO, reduce, literal_eval, is_py25