Skip to content

Python 3.8: add NVDA source directory when attempting to import liblouis DLL #10416

@josephsl

Description

@josephsl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Python 3.8Issues or ideas that can be resolved or derive solutions via Python 3.8.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions