summaryrefslogtreecommitdiffstats
path: root/conftest.py
diff options
context:
space:
mode:
authorMarian Beermann <public@enkore.de>2016-05-24 20:57:52 +0200
committerMarian Beermann <public@enkore.de>2016-05-24 20:58:12 +0200
commit4f1157c3a49ee68c350dc8b8aa68e9dbc7f20093 (patch)
tree6497c4417b5d73ebb5fa41108c7233b574b5f51d /conftest.py
parent5fa52758a02c983a0bd3beac5bf2b1417194b84e (diff)
fix tox build for environment-python != containing-python in yet-another instance
this instance: the repository worktree is *not* named borg.
Diffstat (limited to 'conftest.py')
-rw-r--r--conftest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/conftest.py b/conftest.py
index 6ca799a3e..450ff10a7 100644
--- a/conftest.py
+++ b/conftest.py
@@ -1,3 +1,4 @@
+import os.path
import sys
# This is a hack to fix path problems because "borg" (the package) is in the source root.
@@ -11,7 +12,7 @@ import sys
original_path = list(sys.path)
for entry in original_path:
- if entry == '' or entry.endswith('/borg'):
+ if entry == '' or entry == os.path.dirname(__file__):
sys.path.remove(entry)
try: