В 10:33 -0800 на 02.02.2010 (вт), David Hutto написа:
> 
> 
> --- On Tue, 2/2/10, Григор <grigor.ko...@gmail.com> wrote:
>         
>         From: Григор <grigor.ko...@gmail.com>
>         Subject: [Tutor] Question about importing
>         To: "Python Tutor" <tutor@python.org>
>         Date: Tuesday, February 2, 2010, 12:07 PM
>         
>         Hi all.
>         How can I import a module which is located in the upper
>         directory.
>         
>         
>         I think the following might be what you're looking for:
>         
>         http://docs.python.org/tutorial/modules.html#the-module-search-path
>         
> 
Can I use something like this
#--------------------------------------------------
import sys
sys.path.append("/home/user/other")
import module
#-------------------------------------------------
-- 
Grigor Kolev <grigor.ko...@gmail.com>

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to