[RESOLU] run(cmd) renvoie une erreur
Posté : 28 janv. 2020 - 19:09
Bonjour,
code:
j'exécute un test d'installation de pyscripter, mais l'exécution (cmd) renvoie l'erreur suivante:
Je crois que cela est dû au fait qu'il met "\\" deux barres arrière.
Comment puis-je le résoudre?
code:
Code : Tout sélectionner
for soft in installed_softwares("NetBeans"):
try:
cmd = WAPT.uninstall_cmd(soft['key'])
if len(cmd) == 2:
cmd = cmd[0]
if not '--silent' in cmd:
cmd = cmd + ' --silent --state {}state.xml'.format(path)
print(cmd)
run(cmd)
except ValueError:
print('An error occured!')
Code : Tout sélectionner
CalledProcessErrorOutput: Command 'C:\\Program Files\\NetBeans-11.2\\uninstall.exe --silent --state C:\\ProgramData\\state.xml' returned non-zero exit status 1.
Comment puis-je le résoudre?