[Tutor] pythonpath

Vince Spicer vince at vinces.ca
Mon Nov 1 23:03:48 CET 2010


On Mon, Nov 1, 2010 at 4:00 PM, Vince Spicer <vince at vinces.ca> wrote:

>
>
> On Mon, Nov 1, 2010 at 3:58 PM, Chris King <g.nius.ck at gmail.com> wrote:
>
>>  On 11/1/2010 5:57 PM, Vince Spicer wrote:
>>
>>
>>
>> On Mon, Nov 1, 2010 at 3:54 PM, Chris King <g.nius.ck at gmail.com> wrote:
>>
>>>   On 11/1/2010 5:47 PM, Vince Spicer wrote:
>>>
>>>
>>>
>>> On Mon, Nov 1, 2010 at 3:41 PM, Chris King <g.nius.ck at gmail.com> wrote:
>>>
>>>>  Dear Tutors,
>>>>    When I try to import a module, how can I make it look in certain
>>>> directories for them easily.
>>>> Sincerely,
>>>>    Chris
>>>> _______________________________________________
>>>> Tutor maillist  -  Tutor at python.org
>>>> To unsubscribe or change subscription options:
>>>> http://mail.python.org/mailman/listinfo/tutor
>>>>
>>>
>>>  Hello Chris
>>>
>>> You can manage you path from within your script,
>>>
>>>  import sys
>>> sys.path.append("/home/user/lib")
>>>
>>>  Or in bash you can edit your  $PYTHONPATH env variable
>>>  echo $PYTHONPATH
>>>
>>>
>>> --
>>> Vince Spicer
>>>
>>>
>>>  --
>>> Sent from Ubuntu
>>>
>>>    So doing it in cmd windows will permanently change it?
>>>
>>
>>
>> the first way with work for Window,  the second is for Linux or posix
>> systems
>>
>>  Sorry I can't help with PYTHONPATH on windows.
>>
>> --
>> Vince Spicer
>>
>>
>>  --
>> Sent from Ubuntu
>>
>>  I want a permanent change.
>>
>
> There is probably a Windows alternative to env variables and PYTHONPATH,
> Google may help.
>
>
> --
> Vince Spicer
>
> --
> Sent from Ubuntu
>
>

Sorry I don't know any developers that run Windows anymore, if you find the
solution please post it back here.

Thanks.


-- 
Vince Spicer


-- 
Sent from Ubuntu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20101101/c66bd1e4/attachment-0001.html>


More information about the Tutor mailing list