modelx
modelx copied to clipboard
importing modules referencing each other breaks
import_module breaks if I have:
- A module "a.py", in which I have
import bin the beginning of the file - A module "b.py", in which I have
import ain the beginning of the file It is convenient to have such imports, if I want to split large file with lots of cells into 2 files. In this case I need to tell Python IDE that files are related. This helps with refactoring and tracing of dependencies.
Is that because of https://stackoverflow.com/questions/744373/circular-or-cyclic-imports-in-python ? Then it's more about Python's issue.
I understand that this should create an issue in a normal Python execution. But it shouldn't be the case with modelx as it ignores the imports.