Re: Changer le path pour l'accès aux modules

ast nomail at invalid.com
Fri Sep 12 09:20:52 EDT 2014


"ast" <nomail at invalid.com> a écrit dans le message de news:5412f2cb$0$2069$426a34cc at news.free.fr...
> bonjour
>
> Mon path est:
>
>>>> sys.path
> [' ', 'C:\\Python33\\Lib\\idlelib', 'C:\\Windows\\system32\\python33.zip',
> 'C:\\Python33\\DLLs', 'C:\\Python33\\lib', 'C:\\Python33',
> 'C:\\Python33\\lib\\site-packages', 'mypath']
>
> Tout d'abord à quoi correspond le ' ' vide au tout début ?
> Pourquoi y a t'il deux backslashs \\ entre les répertoires ?
> (sous windows normalement c'est un seul)
>
> Ensuite j'aimerais ajouter un répertoire de façon définitive,
> donc pas en utilisant sys.path.append(... après chaque ouverture
> d'un shell.
>
> J'ai lu qu'il fallait changer une variable $PYTHONFILE
> mais ou exactement ? Je suis sous Windows Vista.
>
> Merci
>

Sorry I sent this message in the wrong forum.
I intended to send it to fr.comp.lang.python 




More information about the Python-list mailing list