Hi
I'm trying to launch a .exe program with a python3.6 script.
I usualy launch my program.exe using command line "cmd" with 5 arguments as follow :
C:\Users\Harold>"C:\Program Files (x86)\EGSesameTriangle\Debug\EGSesameTriangle.exe" 200 1.5 20 80 100
I've tried differnt things with no success !
WIth the 5 arguments:
Any advice or link welcome.
I'm trying to launch a .exe program with a python3.6 script.
I usualy launch my program.exe using command line "cmd" with 5 arguments as follow :
C:\Users\Harold>"C:\Program Files (x86)\EGSesameTriangle\Debug\EGSesameTriangle.exe" 200 1.5 20 80 100
I've tried differnt things with no success !
WIth the 5 arguments:
# python3 # launch_SESAME.py launch SESAME import subprocess subprocess.Popen([r"cmd"]) subprocess.Popen([r'"C:\Program Files (x86)\EGSesameTriangle\Debug\EGSesameTriangle.exe" 500 1.5 20 80 200'])
Error:Traceback (most recent call last):
File "C:\Python35-32\launch_SESAME.py", line 9, in <module>
subprocess.Popen([r'"C:\Program Files (x86)\EGSesameTriangle\Debug\EGSesameTriangle.exe" 500 1.5 20 80 200'])
File "C:\Python35-32\lib\subprocess.py", line 707, in __init__
restore_signals, start_new_session)
File "C:\Python35-32\lib\subprocess.py", line 990, in _execute_child
startupinfo)
PermissionError: [WinError 5] Accès refusé
Microsoft Windows [version 10.0.14393]
(c) 2016 Microsoft Corporation. Tous droits réservés.
With no arguments : the program behave the same way I would have launched it with cmd command line without providing the arguments !import subprocess subprocess.Popen([r"cmd"]) subprocess.Popen([r'C:\Program Files (x86)\EGSesameTriangle\Debug\EGSesameTriangle.exe'])
Error:EGSesame
Generateur de creneaux via Instrunet pour obturateur Sesame, normalises DNI.
Alterne entre 2 phases ou positions du Sesame avec un profil triangle. EG 27 octobre 2016
UTILISATION: EGSesame [gradient_chauffe duree_cyclage niveau1 niveau2 gradient_niveaux]
gradient_chauff : gradient en pourcents par minute, jusqu'au niveau de phase le plus bas. Ex: 500
Duree du cyclage : en heure. Ex: 1.5 pour 1h30
Niveaux des phases: exprime en pourcent du Sesame, de 0.0 a 100.0 (ouvert).
gradient_niveaux : gradient en pourcents par minute, entre les 2 niveaux. Ex: 100
ATTENTION: Pas ou mauvais arguments donnes, reglages par defaut.
Microsoft Windows [version 10.0.14393]
(c) 2016 Microsoft Corporation. Tous droits réservés.
I'm a total beginner.Any advice or link welcome.