Python 3.8: add NVDA source directory when attempting to import liblouis DLL #10416
Labels
Python 3.8
Issues or ideas that can be resolved or derive solutions via Python 3.8.
Milestone
Hi,
A variation for #10385
Is your feature request related to a problem? Please describe.
Python 3.8 adds os.add_dll_directory function that takes path string. This is done for security reasons, as Python's DLL path lookup routine has changed. This affects all sorts of DLL's, including NVDA Helper (see #10385) and for this one, liblouis.dll.
Describe the solution you'd like
Use os.add_dll_directory function right before importing liblouis.dll in lous helper module.
Describe alternatives you've considered
Leave it as is, although it breaks Python 3.8 compatibility.
Additional context
See #10384 for details.
The text was updated successfully, but these errors were encountered: