Re: relative imports with the __import__ function

2009-12-10 Thread Peter Otten
Chris Colbert wrote: > It seems the relative import level is dependent on the location of the > main entry module. I thought the whole idea of relative imports was to > make the import independent of the entry point? You don't have to specify it explicitly, so you can move a module containing fr

Re: relative imports with the __import__ function

2009-12-09 Thread Chris Colbert
On Tue, Dec 8, 2009 at 5:48 PM, Peter Otten <__pete...@web.de> wrote: > Chris Colbert wrote: > >> I have package tree that looks like this: >> >> main.py >> package >> __init__.py >> configuration.ini >> server >> __init__.py >> xmlrpc_server.py >> controller.py

Re: relative imports with the __import__ function

2009-12-08 Thread Peter Otten
Chris Colbert wrote: > I have package tree that looks like this: > > main.py > package > __init__.py > configuration.ini > server > __init__.py > xmlrpc_server.py > controller.py > reco > > segmentation > __init__.py > r

relative imports with the __import__ function

2009-12-08 Thread Chris Colbert
I have package tree that looks like this: main.py package __init__.py configuration.ini server __init__.py xmlrpc_server.py controller.py reco segmentation __init__.py red_objects.py main.py launches an instance of