From 783ec915e2928237b5e3aafcf8e383407bc20c1d 2014-04-26 13:06:12 From: Matthias Bussonnier Date: 2014-04-26 13:06:12 Subject: [PATCH] Merge pull request #5731 from takluyver/sysinfo-realpath Calculate real path for symlinked IPython package in sysinfo --- 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