diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2019-12-23 15:45:39 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-12-23 18:01:49 -0500 |
commit | df82a9638cd8fbe8a33c5969ff9c0d348d069adb (patch) | |
tree | b5b83ea6a199deef9a02c1faa17343dd6ce1ff52 /coverage/multiproc.py | |
parent | 7fb6fc15d88778f15a49ab1e63bdf550c2c7c981 (diff) | |
download | python-coveragepy-git-df82a9638cd8fbe8a33c5969ff9c0d348d069adb.tar.gz |
Use abspath to rc file so that chdir doesn't bork us. #890
Diffstat (limited to 'coverage/multiproc.py')
-rw-r--r-- | coverage/multiproc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coverage/multiproc.py b/coverage/multiproc.py index c466301f..2931b3be 100644 --- a/coverage/multiproc.py +++ b/coverage/multiproc.py @@ -6,6 +6,7 @@ import multiprocessing import multiprocessing.process import os +import os.path import sys import traceback @@ -85,7 +86,7 @@ def patch_multiprocessing(rcfile): # Set the value in ProcessWithCoverage that will be pickled into the child # process. - os.environ["COVERAGE_RCFILE"] = rcfile + os.environ["COVERAGE_RCFILE"] = os.path.abspath(rcfile) # When spawning processes rather than forking them, we have no state in the # new process. We sneak in there with a Stowaway: we stuff one of our own |