bulky-artist-49977
08/12/2023, 3:44 PMmain_pipe.py
where my main pipeline exists.
I have other files next to this file like logger.py
and utils.py
. When I want to import something (like a function) from these files. I do it like this.
from .utils import connect_to_db
from .logger import MAIN_LOGGER
Now when I run
python -m path.to.main_pipe run
I get python import error which indicates there is no parent module.
Is there anyway to use other functions in other files in metaflow pipeline definition or the only solution is to include all the functionality in the FlowSpec
class?