antislash dans commande python
18 Aug
2016
18 Aug
'16
12:42 p.m.
Bonjour, est-ce que quelqu'un sait comment gèrer les antislashs dans une commande run python ? run(r'powershell -NoProfile -NoLogo -NonInteractive -Command import-startlayout -layoutpath screenlayout.bin -mountpath "c:\"') me renvoie l'erreur : 2016-08-18 12:34:08,118 CRITICAL Package chal-config-pc not installed due to errors : CalledProcessError: Command '('powershell -NoProfile -NoLogo -NonInteractive -Command "import-startlayout -layoutpath screenlayout.bin -mountpath c:\\"',)' returned non-zero exit status 1 Le c:\ devient c:\\. Et cela empêche ma commande de s'effectuer correctement Merci. Sébastien.
3425
Age (days ago)
3425
Last active (days ago)
0 comments
1 participants
participants (1)
-
informatique