Skip to content

Commit 9a19f0e

Browse files
committed
mitogen.master: Fix stdlib discovery when sys.prefix contains symlinks
This can be he case when Python has been installed with Homebrew.
1 parent cadd393 commit 9a19f0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mitogen/master.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def _stdlib_paths():
108108
]
109109
prefixes = (getattr(sys, a, None) for a in attr_candidates)
110110
version = 'python%s.%s' % sys.version_info[0:2]
111-
s = set(os.path.abspath(os.path.join(p, 'lib', version))
111+
s = set(os.path.realpath(os.path.join(p, 'lib', version))
112112
for p in prefixes if p is not None)
113113

114114
# When running 'unit2 tests/module_finder_test.py' in a Py2 venv on Ubuntu

0 commit comments

Comments
 (0)