[FIX] removing debug print from wexpect; [UDT] cmd example, double backslash needed.

This commit is contained in:
Benedek Racz 2019-05-05 23:05:00 +02:00
parent be5fa58a0e
commit 2a38f946ce
2 changed files with 1 additions and 2 deletions

View File

@ -12,7 +12,7 @@ sys.path.insert(0, wexpectPath)
import wexpect
# Path of cmd executable:
cmdPathes = ['C:\Windows\System32\cmd.exe', 'cmd.exe', 'cmd']
cmdPathes = [r'C:\\Windows\\System32\\cmd.exe', 'cmd.exe', 'cmd']
cmdPrompt = '>'
for cmdPath in cmdPathes:

View File

@ -1702,7 +1702,6 @@ class spawn_windows (spawn_unix, object):
if args == []:
self.args = split_command_line(command)
self.command = self.args[0]
print('command@@ {} args {}'.format(command, args))
else:
self.args = args[:] # work with a copy
self.args.insert (0, command)