Bonsoir à tous,

je cherche à faire un truc normalement tout bête :

ouvrir un répertoire sur un lecteur avec un accent dans le chemin. (windows !)

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
        if sys.platform=='win32':
            the_path = 'Z:\\Mon chemin accentué\\mon sous dossier'
            subprocess.Popen('explorer "%s"' % the_path)
        else:
            # pour linux .....
si mon chemin est sans accents ça marche, sinon rien !!

Quelqu'un aurait-il eu le cas ou une petite idée à creuser ?

Merci bien