Re: the module load path

graham@laplace.anu.edu.au
Fri, 03 Feb 95 10:23:01 +1100

>> Is there a way to add directories to the module load path? I tried
>> appending to sys.path, but that didn't work since its read only.
>
>What gives you that idea? In fact it's documented early on in the
>tutorial, in the man page, and in the relevant section of the library
>manual! Try
>
> sys.path.append('/etc')
>
>or even
>
> sys.path = ['/usr/local/lib/python', '/etc']

Well what gave me that idea was that I ran a program which played with sys.path
and it gave me a "read only attribute error". But since I cannot reproduce this
problem I am assuming I misread my code or output. Ah well - it was a long day.

graham

Je suis pour le communisme
Je suis pour le socialisme
Je suis pour le capitalisme
Parce que je suis opportuniste