Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Revert broken win32 shell #1

Merged
merged 1 commit into from

1 participant

@jdmarch
Owner

Fixes gh-1632; minimal revert of gh-1424.
Win32 shell interactivity broke qtconsole cd magic.

@jdmarch jdmarch Fixes gh-1632; minimal revert of gh-1424
Win32 shell interactivity broke qtconsole cd magic
30b6912
@jdmarch jdmarch merged commit 68c2deb into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 26, 2012
  1. @jdmarch

    Fixes gh-1632; minimal revert of gh-1424

    jdmarch authored
    Win32 shell interactivity broke qtconsole cd magic
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 2 deletions.
  1. +6 −2 IPython/utils/_process_win32.py
View
8 IPython/utils/_process_win32.py
@@ -124,9 +124,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.
Something went wrong with that request. Please try again.