Hi All. I’m trying to understand how I should str...
# ask-community
k
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?
Copy code
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!