From e241de719f28fd4bae107b4fe22ecb7d243dd7f2 2012-06-11 03:53:58 From: Jonathan March Date: 2012-06-11 03:53:58 Subject: [PATCH] Fixes gh-1632; minimal revert of gh-1424 Win32 shell interactivity broke qtconsole cd magic --- diff --git a/IPython/utils/_process_win32.py b/IPython/utils/_process_win32.py index c66a912..f6a828b 100644 --- a/IPython/utils/_process_win32.py +++ b/IPython/utils/_process_win32.py @@ -125,9 +125,13 @@ def system(cmd): """ # The controller provides interactivity with both # stdin and stdout - import _process_win32_controller - _process_win32_controller.system(cmd) + #import _process_win32_controller + #_process_win32_controller.system(cmd) + with AvoidUNCPath() as path: + if path is not None: + cmd = '"pushd %s &&"%s' % (path, cmd) + return process_handler(cmd, _system_body) def getoutput(cmd): """Return standard output of executing cmd in a shell.