mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-18 02:14:13 +08:00
Test if virtualenvs and pth files work
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import smth; smth.extend_path_foo()
|
||||
6
test/test_evaluate/sample_venvs/pth_directory/smth.py
Normal file
6
test/test_evaluate/sample_venvs/pth_directory/smth.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import sys
|
||||
sys.path.append('/foo/smth.py:module')
|
||||
|
||||
|
||||
def extend_path_foo():
|
||||
sys.path.append('/foo/smth.py:from_func')
|
||||
@@ -1 +0,0 @@
|
||||
import smth; smth.extend_path()
|
||||
@@ -1,6 +0,0 @@
|
||||
import sys
|
||||
sys.path.append('/path/from/smth.py')
|
||||
|
||||
|
||||
def extend_path():
|
||||
sys.path.append('/path/from/smth.py:extend_path')
|
||||
@@ -1,2 +0,0 @@
|
||||
# This file is here to force git to create the directory, as *.pth files only
|
||||
# add existing directories.
|
||||
@@ -1 +0,0 @@
|
||||
/path/from/egg-link
|
||||
@@ -1 +0,0 @@
|
||||
./dir-from-foo-pth
|
||||
@@ -1 +0,0 @@
|
||||
import smth; smth.extend_path()
|
||||
@@ -1 +0,0 @@
|
||||
./relative/egg-link/path
|
||||
@@ -1,6 +0,0 @@
|
||||
import sys
|
||||
sys.path.append('/path/from/smth.py')
|
||||
|
||||
|
||||
def extend_path():
|
||||
sys.path.append('/path/from/smth.py:extend_path')
|
||||
Reference in New Issue
Block a user