Where do resource files get packaged inside of a p...
# general
r
Where do resource files get packaged inside of a pex? I have my resource target explicitly added as a dependency to my pex_binary target, but I'm not seeing the resources files anywhere when I explode my pex to a venv?
1
w
resources are packaged similarly to Python files themselves: they’re loaded relative to a module, rather than necessarily from the “root of your workspace”
so source roots are stripped from resources, and generally you should put a resource near the code that consumes it
r
Oh yep that's exactly where they were. Don't think I had enough today 😅