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
witty-crayon-22786
04/04/2023, 7:40 PM
resources are packaged similarly to Python files themselves: they’re loaded relative to a module, rather than necessarily from the “root of your workspace”
witty-crayon-22786
04/04/2023, 7:41 PM
so source roots are stripped from resources, and generally you should put a resource near the code that consumes it
r
ripe-gigabyte-88964
04/04/2023, 7:42 PM
Oh yep that's exactly where they were. Don't think I had enough ☕ today 😅