[Tutor] Trouble with sys.path.append
Steven D'Aprano
steve at pearwood.info
Sun Aug 8 10:21:08 CEST 2010
On Sun, 8 Aug 2010 09:35:38 am aug dawg wrote:
> Hey all,
>
> Earlier today, I tried to add a folder to my PYTHONPATH. When I tried
> sys.path.app('location/of/folder'), the command successfully executed
> it, but then when I did sys.path to check to see if it was now in my
> PYTHONPATH, it was not there. Does anyone know what might be causing
> this?
Modifying sys.path doesn't update PYTHONPATH. If you modify sys.path,
the changes disappear when you exit and re-enter and the unmodified
PYTHONPATH is read.
--
Steven D'Aprano
More information about the Tutor
mailing list