Sorry if this question is impossible, I'm sort of new to python. When I run the code from outer import inner in a separate program, both outer and inner are printed(as expected). Is there any way to prevent this, without changing the __init__ methods? I'm asking this question in case I'm ever working with a __init__ statement in a built-in module, and need to overwrite it /stop it from running for some reason. All the other questions on SO(that I found, at least) were related to classes, not modules. Thanks in advance!
My module structure:
outer
├── __init__.py (prints out "outer")
├── inner
│ ├── __init__.py (prints out "inner")
│ └── other_code.py