summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>2007-06-04 18:42:09 +0200
committerAlexandre Fayolle <alexandre.fayolle@logilab.fr>2007-06-04 18:42:09 +0200
commit612ca4ed01a7a4e6963299dc4d7db38cd987a2ab (patch)
treea9e9b30c5f5be216bc0507e6ba2db431dd4eeb6e /bin
parent6aa928cfab907d8844a3dd41d562528cf21b2d9c (diff)
downloadlogilab-common-612ca4ed01a7a4e6963299dc4d7db38cd987a2ab.tar.gz
remove empty string and current working directory from sys.path
Otherwise, pycoverage crashes when run in the rql directory, because it of conflicting modules (parser)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pytest8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/pytest b/bin/pytest
index 32650fd..e9221fc 100755
--- a/bin/pytest
+++ b/bin/pytest
@@ -1,3 +1,11 @@
#!/usr/bin/env python
+
+import sys
+import os
+for p in ('', os.getcwd()):
+ try:
+ sys.path.remove(p)
+ except:
+ pass
from logilab.common.pytest import run
run()