mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-20 12:31:14 +08:00
sys path modifications working not only on imports, but on everything
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user