import

Amit Khemka khemkaamit at gmail.com
Fri Jul 6 09:00:01 CEST 2007


On 7/6/07, jolly <jemnader at gmail.com> wrote:
> Hey guys,
>
> I'm rather new to python and i'm have trouble(as usual)

Hope it becomes un-usual with Python !

>
> I want to know if it is possible to change where 'import' looks....
> this will save me clogging up my python directory

Yes.  You can tell python where all to look for importing modules.

import sys
sys.path.append("/this/is/my/modules/path")


> Thanks

Welcome !

cheers,

-- 
----
Amit Khemka
website: www.onyomo.com
wap-site: www.owap.in
Home Page: www.cse.iitd.ernet.in/~csd00377

Endless the world's turn, endless the sun's Spinning, Endless the quest;
I turn again, back to my own beginning, And here, find rest.



More information about the Python-list mailing list