News for hackers. Stuff that matters.
Re:Surprising Consequences of macOS’s Environment Variable S... by orf on Wednesday January 11, 2023 @03:50AM (#34336471)
Here’s the relevant source: https://github.com/python/cpython/blob/8dd2766d99f8f51ad62dc...

I believe you should just be able to replace the library name with an absolute path to the library, and remove the need for the lookup at all?

Re:Surprising Consequences of macOS’s Environment Variable S... by hynek on Wednesday January 11, 2023 @03:56AM (#34336507)
Right, but that would take some really deep patching of code I don't control, just so it works in development.

If this were a production issue, I would probably fork the driver and do what you're suggesting (it's not like it's actively maintained or something :|).

Re:Surprising Consequences of macOS’s Environment Variable S... by orf on Wednesday January 11, 2023 @03:59AM (#34336527)
Why not fork it? If only to have the code under your control in case it abruptly becomes inaccessible.

Then the fix is a single if statement. Seems worth it to me.