Permalink
Browse files

Quick fix for os.system requiring str parameter

  • Loading branch information...
1 parent 2ad63d5 commit a44e04d3e51f52959b1895d2f7633805b2f1998c jstenar committed Nov 16, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 IPython/core/interactiveshell.py
@@ -2082,6 +2082,7 @@ def system_raw(self, cmd):
with AvoidUNCPath() as path:
if path is not None:
cmd = '"pushd %s &&"%s' % (path, cmd)
+ cmd = cmd.encode(sys.stdin.encoding)
ec = os.system(cmd)
else:
ec = os.system(cmd)

0 comments on commit a44e04d

Please sign in to comment.