Let's say I have the following directory structure:
a\ __init__.py b\ __init__.py c\ __init__.py c_file.py d\ __init__.py d_file.py
In package a __init__.py package c imported. But c_file.py imports abd .
The program does not work, saying b does not exist when c_file.py tries to import abd . (And it really does not exist, because we were in the middle of importing it.)
How can this problem be fixed?
python dependencies python-import circular-dependency
Ram Rachum Oct 12 '09 at 19:19 2009-10-12 19:19
source share