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
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.
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
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(