Re: question about module resolution

2007-01-18 Thread Peter Otten
Emin wrote: > On Jan 17, 11:20 am, Peter Otten <[EMAIL PROTECTED]> wrote: >> Emin wrote: >> > I often find myself wanting to have a child module get some parameters >> > defined in a parent module. For example, imagine I have the following >> > directory structure and want something in baz.py to

Re: question about module resolution

2007-01-17 Thread Emin
I put the lines you suggested in baz.py, but got an error: Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import baz Traceback (most recent call last): File "", line 1, in File "baz.

Re: question about module resolution

2007-01-17 Thread Peter Otten
Emin wrote: > I often find myself wanting to have a child module get some parameters > defined in a parent module. For example, imagine I have the following > directory structure and want something in baz.py to look at a value in > config.py. I end up putting in things like import sys; > sys.path

question about module resolution

2007-01-17 Thread Emin
Dear Experts, I often find myself wanting to have a child module get some parameters defined in a parent module. For example, imagine I have the following directory structure and want something in baz.py to look at a value in config.py. I end up putting in things like import sys; sys.path.append(