https://prefect.io logo
Title
k

Kelby

01/26/2023, 3:30 PM
Hi All. I’m trying to understand how I should structure the code in my project. Obviously, I’ll have flows and probably separate files for tasks. What I’m struggling with is where should I store common code, such as custom libraries and database models?
project
  flows
    flow1.py
    task1.py
  common
    db.py
    utils.py
I can get that to work if I have the proper PYTHONPATH in place, but that seems wrong because the flow/task code is run from the
/tmp
directory, but the common code would be running in the original source location. Any hints? Thanks!