Quick note. I had 15 minutes to poke around, and the auth_set_additional_search_path method was just the ticket.
“void auth_set_additional_search_path(char const* new_path, void* user_data, void (*o_cb)(void* user_data, FfiResult const* result));” to the cdef, and calling with
lib2.auth_set_additional_search_path(ffi.new(‘char’,’…/compiled_binaries’.encode()), ffi.NULL, change_crust_location_cb)
before the stem_exe command indeed initializes from the provided config, and doesn’t create a new one in the python bin directory. Victory!
Lots of work to do, but 100% possible to make a portable package with no leakage into the python install Look forwards to having more time on friday.