12/10/2020, 4:54 PM
Does Pants make any guarantees about runtime directory relative to the source tree? Particularly in regards to relative path between some
12/10/2020, 5:25 PM
Yes. It strips the source root, if any. See
For tests, it's also often convenient to use files() or relocated_files() instead
12/10/2020, 7:29 PM
are intended to be loaded via pkg_resources mechanisms, using logical names relative to the source root.
are just files, relative to the repo root, but you can relocate them (logically) at runtime, as Eric mentioned.
Is there a specific example we can weigh in on? 🙂