Popen No waiting after call , Directly execute the following code
def run_server(server_path):
import subprocess
login_info = [server_path]
subprocess.Popen(login_info)
check_all Wait for the called program to finish executing before running
def login()
login_info = ['C:\\Program Files (x86)\\SAP\\FrontEnd\\SAPgui\\sapshcut.exe', '-system=PRD', '-client=110','-l=ZH', '-user= user name ', '-pw= password ']
subprocess.check_call(login_info)
login()
Reference resources
https://blog.csdn.net/weixin_42541463/article/details/113644610