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