Test if virtualenvs and pth files work

This commit is contained in:
Dave Halter
2017-12-30 00:02:14 +01:00
parent 7de04fb28d
commit e2629b680f
16 changed files with 43 additions and 46 deletions
@@ -0,0 +1 @@
import smth; smth.extend_path_foo()
@@ -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')