From 508d149e901890b0432e5ed00cb5b247dec7c1ab 2014-04-25 18:22:32 From: Thomas Kluyver Date: 2014-04-25 18:22:32 Subject: [PATCH] Calculate real path for symlinked IPython package in sysinfo See discussion on #5725 --- diff --git a/IPython/utils/sysinfo.py b/IPython/utils/sysinfo.py index 003eca4..e3d40c0 100644 --- a/IPython/utils/sysinfo.py +++ b/IPython/utils/sysinfo.py @@ -95,7 +95,7 @@ def pkg_info(pkg_path): def get_sys_info(): """Return useful information about IPython and the system, as a dict.""" p = os.path - path = p.dirname(p.abspath(p.join(__file__, '..'))) + path = p.realpath(p.dirname(p.abspath(p.join(__file__, '..')))) return pkg_info(path) @py3compat.doctest_refactor_print