Where to put custom imports?

2 Questions:

  • Is there a place in the forums specifically for “I’m working on a custom plugin and need an adult”
  • I’m working on a plugin and need an adult…(continued below)

My plugin logic would be better suited in it’s own module/class … IE, in action.py, I’d like to “import domko-lib” and in the run method, I’d like to call “domko-lib.do_cool_thing()”… it’s not on PyPi (so I’m assuming requirements.txt is out) , where should I drop domko-lib.py in order to access it in action.py?

2 Likes

We typically put stuff like that in a utils folder.

So something like this:
image

But you’re in the right spot to ask questions, and we’re excited to get plugin contributions, so please, ask away.

2 Likes