I'm looking to be able to send commands to the CMD (windows). I need to be able to send multiple commands and have them run on the CMD.
The specific commands I need to send are:
cd "C:\Python27\Scripts"pyinstaller.exe --clean --win-private-assemblies -F --onefile –windowed --icon=app.ico app.py
Is this easily possible?
subprocessmodulesubprocess.check_call([r'C:\Python27\Scripts\pyinstaller.exe', '--clean', '--win-private-assemblies', '-F', '--onefile', '--windowed', '--icon=app.ico', 'app.py'], cwd=r'C:\Python27\Scripts'). Passing thecwdoption is necessary if that's where "app.ico" and "app.py" are located.