From 1a26247426a8122b70b2aa87b245e321b84317da 2014-05-07 17:24:47 From: Björn Linse Date: 2014-05-07 17:24:47 Subject: [PATCH] Don't auto-move .config/ipython if symbolic link --- diff --git a/IPython/utils/path.py b/IPython/utils/path.py index 6d52793..0566657 100644 --- a/IPython/utils/path.py +++ b/IPython/utils/path.py @@ -287,6 +287,9 @@ def get_ipython_dir(): if os.path.exists(ipdir): warnings.warn(('Ignoring {0} in favour of {1}. Remove {0} ' 'to get rid of this message').format(cu(xdg_ipdir), cu(ipdir))) + elif os.path.islink(xdg_ipdir): + warnings.warn(('{0} is deprecated. Move link to {1} ' + 'to get rid of this message').format(cu(xdg_ipdir), cu(ipdir))) else: warnings.warn('Moving {0} to {1}'.format(cu(xdg_ipdir), cu(ipdir))) os.rename(xdg_ipdir, ipdir)