Let's say.. I have a source root of - foo ◦ ba...
# general
p
Let's say.. I have a source root of • foo ◦ bar If I had a root of
foo
.. I'm not loading the bar library. Can I handle this on pants side?
h
I don't understand the question
what does "handle this" mean?
p
Yeah sorry I don't have the lingo... looking at the examples. https://www.pantsbuild.org/docs/source-roots#examples
I think I answered my question... maybe. I have this directory structure • teletom ◦ tom If I add the root_pattern of
teletom/
I should be able to from
tom.whatever import foo
?
Yes. Apologies for the silly question.
h
Precisely
The source roots are the roots of the package hierarchy