Skip to content

Python 3.8 DLL load path is... troubled. #4876

Closed
@alexreinking

Description

@alexreinking

As of at least Python 3.8, the DLL search no longer consults the PATH. Trying to hl.load_plugin("gradient_autoscheduler") fails because LoadLibraryW only searches in the Python root dir and system32. It doesn't even check the current directory (for any reasonable definition of current).

Not sure what the appropriate fix is here. Maybe we can use LoadLibraryExW with appropriate flags to get the search to include the PATH.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions