unable to import modules from other folders

morton.thomas at googlemail.com morton.thomas at googlemail.com
Tue Jun 10 14:25:48 CEST 2008

C:\MyDocs needs to be in the sys.path variable for python to include
it in it's search for modules

Try this:

import sys

If you are packaging your program for reuse or later move that folder
bear in mind it will *break*

A better method would be to place the module into site-packages OR in
the same directory as the Py script that uses it.



On 6/10/08, moijes12 <moijes12 at gmail.com> wrote:
> Hi friends
> I have a module "bigbee" in folder C:\MyDocs\BigBee and another module
> "foo" needs to import from this.however, "foo" is in D:\foo.
> foo.py :
> from bigbee import *
> The error i get is:
> ImportError: No Module bigbee.
> Please provide a solution.
> --
> http://mail.python.org/mailman/listinfo/python-list

Thomas Morton

Lead Developer || Founder
TomNRob Web Services

More information about the Python-list mailing list