1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 23:50:05 +08:00
SpaceVim/bundle/jedi-vim/pythonx/jedi/test/completion/sys_path.py

25 lines
460 B
Python
Raw Normal View History

2022-10-23 15:41:52 +08:00
import sys
import os
from os.path import dirname
sys.path.insert(0, '../../jedi')
sys.path.append(os.path.join(dirname(__file__), 'thirdparty'))
# modifications, that should fail:
# syntax err
sys.path.append('a' +* '/thirdparty')
#? ['inference']
import inference
#? ['inference_state_function_cache']
inference.inference_state_fu
# Those don't work because dirname and abspath are not properly understood.
#? ['jedi_']
import jedi_
#? ['el']
jedi_.el