Files
jedi/test/completion/sys_path.py
Dave Halter 7019ca643e Remove a possible security issue
sys paths are not executed anymore and use static analysis now.
2017-10-05 19:57:50 +02:00

25 lines
458 B
Python

import sys
import os
from os import dirname
sys.path.insert(0, '../../jedi')
sys.path.append(dirname(os.path.abspath('thirdparty' + os.path.sep + 'asdf')))
# modifications, that should fail:
# syntax err
sys.path.append('a' +* '/thirdparty')
#? ['evaluate']
import evaluate
#? ['evaluator_function_cache']
evaluate.Evaluator_fu
# Those don't work because dirname and abspath are not properly understood.
##? ['jedi_']
import jedi_
##? ['el']
jedi_.el