[Tutor] importing modules

lonetwin lonetwin@yahoo.com
Wed Jul 23 03:32:02 2003


Hi there,
    Also read the documentation at (url may wrap)

http://www.python.org/doc/current/tut/node8.html#SECTION008400000000000000000

HTH
Peace
Steve

On Tuesday 22 Jul 2003 3:17 am, Michael Barrett wrote:
> Assuming your project is in directory /path/to/project and the module is
> called 'mymodule.py' then you can do the following in your script:
>
> import sys
> sys.path.append('/path/to/project')
>
> import mymodule
>
> =====
>
> Hope that helps.
>
> On Mon, Jul 21, 2003 at 02:00:15PM -0300, Luiz Siqueira Neto wrote:
> > How can I import modules inside of a directory in a root of my project?
> >
> > in java I use import dir.package.*
> >
> > _______________________________________________
> > Tutor maillist  -  Tutor@python.org
> > http://mail.python.org/mailman/listinfo/tutor

-- 
One does not thank logic.
		-- Sarek, "Journey to Babel", stardate 3842.4