stale-nightfall-29801
11/19/2021, 1:25 PMresources
out of a relocated_files
? I've got a folder in /library/stuff
with files I need in multiple projects. Can I relocate them into those projects with relocated_files
then turn them into resources that will be packaged (at those new, relocated, paths)happy-kitchen-89482
11/19/2021, 6:17 PMlibrary/stuff
is a source root, and you have a resources()
target in it that globs over the relevant files, then any code that depends on that target can load library/stuff/foo/bar.txt
as the resource bar.txt
in the package foo
(or the resource foo/bar.txt
in the root package, I think that works).hundreds-father-404
11/19/2021, 6:30 PMstale-nightfall-29801
11/24/2021, 9:19 AMopen
as they where just copied to a location on disk, though I'd like to change this and package everything properly, it shouldn't be too hard to get this to work with the files as package resources.
Will the tests be able to also work with code that access these files via pkg_resources
or are additional steps needed ?stale-nightfall-29801
11/24/2021, 11:32 AM