Skip to content

Commit 3ee41ff

Browse files
author
Buck Evan
committed
Merge pull request bukzor#3 from bukzor/no-pwd
handle "pwd does not exist"
2 parents 241b220 + 21a4dc2 commit 3ee41ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@
7373
PTH = '''\
7474
try:
7575
import coverage
76-
except ImportError:
76+
# coverage throws OSError when $PWD does not exist
77+
except (ImportError, OSError):
7778
pass
7879
else:
7980
coverage.process_startup()
@@ -123,7 +124,7 @@ def main():
123124
"""the entry point"""
124125
setup(
125126
name=str('coverage_enable_subprocess'),
126-
version='0',
127+
version='1.0',
127128
url="https://github.com/bukzor/python-coverage-enable-subprocess",
128129
license="MIT",
129130
author="Buck Evan",

0 commit comments

Comments
 (0)