##// END OF EJS Templates
No more .exe extension in aliases after %rehashx
vivainio -
Show More
@@ -1,7 +1,7 b''
1 # -*- coding: utf-8 -*-
1 # -*- coding: utf-8 -*-
2 """Magic functions for InteractiveShell.
2 """Magic functions for InteractiveShell.
3
3
4 $Id: Magic.py 1927 2006-11-24 15:37:21Z vivainio $"""
4 $Id: Magic.py 1933 2006-11-26 19:53:32Z vivainio $"""
5
5
6 #*****************************************************************************
6 #*****************************************************************************
7 # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and
7 # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and
@@ -2531,8 +2531,11 b' Defaulting color scheme to \'NoColor\'"""'
2531 for pdir in path:
2531 for pdir in path:
2532 os.chdir(pdir)
2532 os.chdir(pdir)
2533 for ff in os.listdir(pdir):
2533 for ff in os.listdir(pdir):
2534 if isexec(ff) and os.path.splitext(ff)[0] not in self.shell.no_alias:
2534 base, ext = os.path.splitext(ff)
2535 alias_table[execre.sub(r'\1',ff)] = (0,ff)
2535 if isexec(ff) and base not in self.shell.no_alias:
2536 if ext.lower() == '.exe':
2537 ff = base
2538 alias_table[base] = (0,ff)
2536 syscmdlist.append(ff)
2539 syscmdlist.append(ff)
2537 # Make sure the alias table doesn't contain keywords or builtins
2540 # Make sure the alias table doesn't contain keywords or builtins
2538 self.shell.alias_table_validate()
2541 self.shell.alias_table_validate()
General Comments 0
You need to be logged in to leave comments. Login now