mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-04 08:33:46 +08:00
sys path modifications
This commit is contained in:
1 parent
65064b1312
commit
9a2ec13230
8 files changed
+140
-6
No files matched your search
@@ -0,0 +1,22 @@
|
||||
|
||||
import sys
|
||||
import os
|
||||
from os import dirname
|
||||
|
||||
sys.path.insert(0, '../..')
|
||||
sys.path.append(dirname(os.path.abspath('thirdparty' + os.path.sep + 'asdf')))
|
||||
|
||||
# modifications, that should fail:
|
||||
# because of sys module
|
||||
sys.path.append(sys.path[1] + '/thirdparty')
|
||||
# syntax err
|
||||
sys.path.append('a' +* '/thirdparty')
|
||||
|
||||
#? ['evaluate']
|
||||
import evaluate
|
||||
|
||||
#? ['goto']
|
||||
evaluate.goto
|
||||
|
||||
#? ['pylab_']
|
||||
import pylab_
|
||||
Reference in new issue
Block a user