mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-30 23:55:23 +08:00
sys path modifications working not only on imports, but on everything
This commit is contained in:
@@ -18,5 +18,8 @@ import evaluate
|
||||
#? ['goto']
|
||||
evaluate.goto
|
||||
|
||||
#? ['pylab_']
|
||||
import pylab_
|
||||
#? ['jedi_']
|
||||
import jedi_
|
||||
|
||||
#? ['el']
|
||||
jedi_.el
|
||||
|
||||
@@ -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