hundreds-father-404
10/08/2020, 7:14 PMis there a way to strip the prefix for everything above the BUILD file?Yeah, you can use `RemovePrefix`: https://www.pantsbuild.org/docs/rules-api-file-system#addprefix-and-removeprefix But that might break imports. If you have
a/b/c/setup.py, and it imports the module <http://b.c.my|b.c.my>_app, then when you strip out the a/b/c part to only have setup.py, your imports will be broken.
What’s the motivation for the stripping?