[Wapt] Fonctions setuphelpers ne fonctionnent pas avec les caractères accentués

Bastien HERMITTE bhermitte at b2pweb.com
Thu Dec 10 12:05:12 CET 2015


Bonjour,

Vous pouvez essayer de mettre un 'u' devant les chaines pour forcer 
l'encodage unicode :
/chemin_videos=makepath(u'c:\\',u'Captvty',u'Vidéos')/
/create_desktop_shortcut('Videos', chemin_videos)/

Cordialement,
Bastien

Le 10/12/2015 11:48, informatique a écrit :
> Bonjour,
>
> je doit faire un raccourci bureau d'un dossier comportant un accent 
> "Vidéos", avec la fonction create_desktop_shortcut, mais cela provoque 
> une erreur
>
> Code :
> /chemin_videos=makepath('c:\\','Captvty','Vidéos')/
> /create_desktop_shortcut('Videos', chemin_videos)/
>
> Erreur WAPT :
> 2015-12-10 11:39:40,530 CRITICAL Package chal-captvty-ecole not 
> installed due to erro
> = setup.install()\n  File 
> "c:\\users\\admini~1\\appdata\\local\\temp\\waptdkjs4b\\set
> ile "C:\\wapt\\lib\\ntpath.py", line 108, in join\n    path += "\\\\" 
> + b\nUnicodeDec
>
> Comment faire pour éviter ce problème avec les dossiers comportant des 
> accents ?
>
> Merci.
> Sébastien.
>
>
>
> _______________________________________________
> WAPT mailing list
> WAPT at lists.tranquil.it
> http://lists.tranquil.it/listinfo/wapt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20151210/0efbea02/attachment-0001.html>


More information about the WAPT mailing list