We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 741eca2 commit c865e6bCopy full SHA for c865e6b
source/ports/py_port/metacall/module_win32.py
@@ -54,7 +54,7 @@ def get_loaded_module(modules, module_name):
54
cPath = ctypes.c_char_p(b'\0' * 1024)
55
kernel32.GetModuleFileNameA(module, cPath, ctypes.c_ulong(1024))
56
path = cPath.value
57
- if path.endswith(bytes(module_name, 'ascii')):
+ if os.path.normpath(path.decode('utf-8')) == os.path.normpath(module_name):
58
return module
59
return None
60
0 commit comments