how to pass variable in pywinauto.Application().start(cmd_line='')
问题 I have this code below: from pywinauto.application import Application '''user-defined package user_input1''' from user_input1 import Get_USER,Get_TOKEN import time server='host.domain.com' cwd=r'C:\Program Files (x86)\PuTTY' user = 'uname' '''user = Get_USER()''' password = Get_TOKEN() app = Application().start(cmd_line='putty -ssh uname@host.domain.com') putty = app.PuTTY putty.wait('ready') time.sleep(1) putty.type_keys(password) putty.type_keys("{ENTER}") time.sleep(1) putty.type_keys(