I'm attempting to bring some funky layout of pytho...
# general
g
I'm attempting to bring some funky layout of python code under pants. The weird/odd thing is that someone put a redundant folder (src/thing_a/thing_a/class.py) Is there a way to have pants infer import statements of `thing_a.clas`s to point to
thing_a/thing_a/class.py
?
h
That just means that
src/thing_a/
is a "source root" in Pants parlance, so you just need to configure it as such: https://www.pantsbuild.org/2.19/docs/using-pants/key-concepts/source-roots
🙌 1