Guilherme Petris
12/08/2021, 9:52 AMAnna Geller
12/08/2021, 9:56 AMGuilherme Petris
12/08/2021, 12:33 PM__init__.py
inside the folder and apparently i can’t import the tasks separately. Have to put everything in the same folder basically.Anna Geller
12/08/2021, 12:38 PMfrom prefect.run_configs import LocalRun
with Flow("yourflow", run_config=LocalRun(working_dir="/path/to/your/modules")) as flow:
or add it when starting the agent:
prefect agent local start -p /Users/you/your_modules
Guilherme Petris
12/08/2021, 12:56 PMfrom pendo_task import task1
Anna Geller
12/08/2021, 12:58 PMdev
12/22/2021, 12:27 PMModuleNotFoundError
for imported modules from the same project directory. How to handle such imports?
project
|_lib
|_ util.py
|_ common.py
|_flows
|_ flow1.py // imports util etc here which is throwing error
|_ flow2.py