I've organized my project by separating different functionality, but don't how to communicate between the parts I've created.
I'm trying to access functions from run_perf.py
in addMetrics.py
by including this import statement
from analysis import run_perf
...
runtime = run_perf.calcMs()
Keep getting ModuleNotFoundError: No module named 'analysis' but don't know how to fix it.
Project Structure:
myApplication/
│
├── bin/
│
├── myApplication/
│ ├── __init__.py
│ ├── runner.py
│ ├── analysis/
│ │ ├── __init__.py
│ │ ├── run_perf.py
│ │ └── mem_perf.py
│ │
│ └── conversion/
│ ├── __init__.py
│ ├── convert.py
│ └── addMetrics.py
│
├── .gitignore
├── LICENSE
└── README.md
(If its worth noting, my __init__.py
files are also empty at the moment)