diff options
author | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2007-06-04 18:42:09 +0200 |
---|---|---|
committer | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2007-06-04 18:42:09 +0200 |
commit | 612ca4ed01a7a4e6963299dc4d7db38cd987a2ab (patch) | |
tree | a9e9b30c5f5be216bc0507e6ba2db431dd4eeb6e /bin | |
parent | 6aa928cfab907d8844a3dd41d562528cf21b2d9c (diff) | |
download | logilab-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-x | bin/pytest | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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() |