Skip to content

Commit 5b46b6a

Browse files
committed
use abspath if path not provided to preserve symlinks
1 parent d31d526 commit 5b46b6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/test/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
if provided_prefix:
77
PREFIX = provided_prefix
88
else:
9-
this_file_dir = os.path.dirname(os.path.realpath(__file__))
9+
this_file_dir = os.path.dirname(os.path.abspath(__file__))
1010
PREFIX = os.path.dirname(os.path.dirname(this_file_dir))
1111

1212
# Location of test data files such as test case descriptions.

0 commit comments

Comments
 (0)