diff options
author | Dan Hemberger <daniel.hemberger@gmail.com> | 2019-05-30 12:38:09 -0700 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-07-06 17:17:42 -0400 |
commit | e5a59865b038ac575c4f8ca9e79c5b4802018ff1 (patch) | |
tree | 2902479cdfe812d6daa61ea2dc713b9ab6acb08a /coverage/cmdline.py | |
parent | 0911fe5e8986dc63c3e9fce8815b4730d02f1d01 (diff) | |
download | python-coveragepy-git-e5a59865b038ac575c4f8ca9e79c5b4802018ff1.tar.gz |
Return to the original directory after exec'ing a file
If the file that is exec'd chdirs to a directory that doesn't exist
at the end of the execution, then we will fail to connect to the
SQLite database (due to a failing `os.getcwd` command).
We can easily fix this if we ensure we are in a directory that
exists after executing the foreign code. Returning to the original
directory seems to be a sensible choice.
Diffstat (limited to 'coverage/cmdline.py')
0 files changed, 0 insertions, 0 deletions