mirror of
https://github.com/clearml/wexpect-venv
synced 2025-04-27 17:41:17 +00:00
[FIX] removing debug print from wexpect; [UDT] cmd example, double backslash needed.
This commit is contained in:
parent
be5fa58a0e
commit
2a38f946ce
@ -12,7 +12,7 @@ sys.path.insert(0, wexpectPath)
|
|||||||
import wexpect
|
import wexpect
|
||||||
|
|
||||||
# Path of cmd executable:
|
# Path of cmd executable:
|
||||||
cmdPathes = ['C:\Windows\System32\cmd.exe', 'cmd.exe', 'cmd']
|
cmdPathes = [r'C:\\Windows\\System32\\cmd.exe', 'cmd.exe', 'cmd']
|
||||||
cmdPrompt = '>'
|
cmdPrompt = '>'
|
||||||
|
|
||||||
for cmdPath in cmdPathes:
|
for cmdPath in cmdPathes:
|
||||||
|
@ -1702,7 +1702,6 @@ class spawn_windows (spawn_unix, object):
|
|||||||
if args == []:
|
if args == []:
|
||||||
self.args = split_command_line(command)
|
self.args = split_command_line(command)
|
||||||
self.command = self.args[0]
|
self.command = self.args[0]
|
||||||
print('command@@ {} args {}'.format(command, args))
|
|
||||||
else:
|
else:
|
||||||
self.args = args[:] # work with a copy
|
self.args = args[:] # work with a copy
|
||||||
self.args.insert (0, command)
|
self.args.insert (0, command)
|
||||||
|
Loading…
Reference in New Issue
Block a user