Re: need clarification with import statements

2006-12-15 Thread Tool69
Hi John, > 1. Your directory/package hierarchy is far too complicated. Flatten it. Ok. > 2. You have circular references: the others module will import from > utils, but utils wants to import from others. This is prima facie > evidence that your modules are not structured properly Yes, that's wh

Re: need clarification with import statements

2006-12-14 Thread John Machin
Tool69 wrote: > Hi, > I've got the following hierarchy: > > mainprog/ > __init__.py > prog.py > utils/ > __init__.py > myutils.py > others/ > __init__.py > myothers.py > > Inside prog.py I need to have full access to myutils.py and > myothers.py; > I

need clarification with import statements

2006-12-14 Thread Tool69
Hi, I've got the following hierarchy: mainprog/ __init__.py prog.py utils/ __init__.py myutils.py others/ __init__.py myothers.py Inside prog.py I need to have full access to myutils.py and myothers.py; Inside myutils.py, I need to access two classe