diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2011-05-21 21:18:38 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-05-21 21:18:38 -0400 |
commit | 511abdd3a251eb2d5c9a0dd8912c9c52c6fb52b8 (patch) | |
tree | fb1efe5c7b86d22bd535738d0633a5dc8db05501 /coverage/execfile.py | |
parent | 34413aab8a61579789faa342331ac9c8a55ee5a4 (diff) | |
download | python-coveragepy-git-511abdd3a251eb2d5c9a0dd8912c9c52c6fb52b8.tar.gz |
The current directory auto-inserted into sys.path is now absolute, to better mimic Python execution.
Diffstat (limited to 'coverage/execfile.py')
-rw-r--r-- | coverage/execfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/execfile.py b/coverage/execfile.py index 01788bb5..71227b71 100644 --- a/coverage/execfile.py +++ b/coverage/execfile.py @@ -89,7 +89,7 @@ def run_python_file(filename, args, package=None): old_argv = sys.argv old_path0 = sys.path[0] sys.argv = args - sys.path[0] = os.path.dirname(filename) + sys.path[0] = os.path.abspath(os.path.dirname(filename)) try: # Open the source file. |