[conspire] People failing to learn about package gatekeeping, part 1

Nick Moffitt nick at zork.net
Tue Apr 19 00:51:44 PDT 2022


On 18Apr2022 01:41am (-0700), Michael Paoli wrote:
> And, I adjusted the application (program's) code slightly ... it would
> use an eval to see if could load the needed modules - and no changes
> were made as to where to look for the modules - still used Red Hat's
> standard locations.  Only if that failed, would it add the relevant
> location(s) under /usr/local (or wherever it was we'd specifically put
> it to be appropriate and non-conflicting), so it would then load the
> locally prepared version of the modules.  

This is where I absolutely love Python's import statement being a normal part of the language: you can catch exceptions from the import statement and fall back to other approaches without needing to use something horrible like eval()!



More information about the conspire mailing list