##// END OF EJS Templates
%cd accepts \ as pathsep - will convert to /.
vivainio -
r111:5d6e7ff8
parent child
Show More
@@ -1,7 +1,7
1 # -*- coding: utf-8 -*-
1 # -*- coding: utf-8 -*-
2 """Magic functions for InteractiveShell.
2 """Magic functions for InteractiveShell.
3
3
4 $Id: Magic.py 1014 2006-01-13 19:16:41Z vivainio $"""
4 $Id: Magic.py 1018 2006-01-14 11:02:50Z 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
@@ -2303,6 +2303,9 Defaulting color scheme to 'NoColor'"""
2303 else:
2303 else:
2304 opts = {}
2304 opts = {}
2305 else:
2305 else:
2306 #turn all non-space-escaping backslashes to slashes,
2307 # for c:\windows\directory\names\
2308 parameter_s = re.sub(r'\\(?! )','/', parameter_s)
2306 opts,ps = self.parse_options(parameter_s,'qb',mode='string')
2309 opts,ps = self.parse_options(parameter_s,'qb',mode='string')
2307 # jump to previous
2310 # jump to previous
2308 if ps == '-':
2311 if ps == '-':
@@ -3,6 +3,11
3 * IPython/ipapi.py (ashook, asmagic, options): Added convenience
3 * IPython/ipapi.py (ashook, asmagic, options): Added convenience
4 ipapi decorators for python 2.4 users, options() provides access to rc
4 ipapi decorators for python 2.4 users, options() provides access to rc
5 data.
5 data.
6
7 * IPython/Magic.py (magic_cd): %cd now accepts backslashes
8 as path separators (even on Linux ;-). Space character after
9 backslash (as yielded by tab completer) is still space;
10 "%cd long\ name" works as expected.
6
11
7
12
8 2006-01-13 Ville Vainio <vivainio@gmail.com>
13 2006-01-13 Ville Vainio <vivainio@gmail.com>
General Comments 0
You need to be logged in to leave comments. Login now