Steve Dower <steve.do...@python.org> added the comment: The import hook could theoretically modify the search path before and after loading the module, though that could make debugging a real pain.
I was also thinking of just having an explicit list of DLLs to load, rather than inspecting the binary. Per-module preloading is as fine grained as you can get though it still won't help if another import has loaded a different DLL by the same name. This is where you can't avoid recompilation or activation contexts. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32516> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com