mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont pass unicode paths to ctypes WinDLL
This commit is contained in:
parent
e867344cf1
commit
3ea989387b
@ -25,7 +25,7 @@ class BuildTest(unittest.TestCase):
|
||||
for x in os.listdir(base):
|
||||
if x.lower().endswith('.dll'):
|
||||
try:
|
||||
ctypes.WinDLL(os.path.join(base, x))
|
||||
ctypes.WinDLL(str(os.path.join(base, x)))
|
||||
except Exception as err:
|
||||
self.assertTrue(False, 'Failed to load DLL %s with error: %s' % (x, err))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user