diff options
author | Thomas Kluyver <takowl@gmail.com> | 2017-09-16 11:41:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-16 11:41:29 +0100 |
commit | 11445503eab6ac8356f25a6d5dbfa7208abddab7 (patch) | |
tree | ca393fa3e0ac3e5e45a69a844d162578127640af /pexpect | |
parent | 380a9bc7ac7a4ae84e75067652eca6b1e0caf1f2 (diff) | |
parent | a050f5c3cdf33eaf0a34bc710b44190751fe0762 (diff) | |
download | pexpect-11445503eab6ac8356f25a6d5dbfa7208abddab7.tar.gz |
Merge pull request #446 from eli-b/patch-1
Fix popen_spawn when specifying a path on Windows which contains "\" …
Diffstat (limited to 'pexpect')
-rw-r--r-- | pexpect/popen_spawn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pexpect/popen_spawn.py b/pexpect/popen_spawn.py index c9d4738..9567f49 100644 --- a/pexpect/popen_spawn.py +++ b/pexpect/popen_spawn.py @@ -41,7 +41,7 @@ class PopenSpawn(SpawnBase): kwargs['creationflags'] = subprocess.CREATE_NEW_PROCESS_GROUP if isinstance(cmd, string_types): - cmd = shlex.split(cmd) + cmd = shlex.split(cmd, posix=os.name == 'posix') self.proc = subprocess.Popen(cmd, **kwargs) self.pid = self.proc.pid |