From 4b4a9bbe7a70ceee89cca0a08b5631de7768f50e 2006-03-01 11:27:24 From: vivainio Date: 2006-03-01 11:27:24 Subject: [PATCH] rehashx now works with relative directories on PATH --- diff --git a/IPython/Magic.py b/IPython/Magic.py index 1edd16b..612731f 100644 --- a/IPython/Magic.py +++ b/IPython/Magic.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Magic functions for InteractiveShell. -$Id: Magic.py 1179 2006-02-24 18:32:09Z vivainio $""" +$Id: Magic.py 1181 2006-03-01 11:27:24Z vivainio $""" #***************************************************************************** # Copyright (C) 2001 Janko Hauser and @@ -2276,7 +2276,10 @@ Defaulting color scheme to 'NoColor'""" '|'-separated string of extensions, stored in the IPython config variable win_exec_ext. This defaults to 'exe|com|bat'. """ - path = filter(os.path.isdir,os.environ['PATH'].split(os.pathsep)) + path = [os.path.abspath(os.path.expanduser(p)) for p in + os.environ['PATH'].split(os.pathsep)] + path = filter(os.path.isdir,path) + alias_table = self.shell.alias_table syscmdlist = [] if os.name == 'posix':