File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import abc
22import ctypes
3+ import ctypes .util
34import mmap
45import os
56import sys
6- from ctypes .util import find_library
77
88import numpy as np
99
@@ -153,7 +153,7 @@ class PosixAllocator(MemoryAllocator):
153153
154154 @classmethod
155155 def initialize (cls ):
156- handle = find_library ('c' )
156+ handle = ctypes . util . find_library ('c' )
157157
158158 # Special case: on MacOS Big Sur any code that attempts to check
159159 # for dynamic library presence by looking for a file at a path
@@ -274,7 +274,7 @@ class NumaAllocator(MemoryAllocator):
274274
275275 @classmethod
276276 def initialize (cls ):
277- handle = find_library ('numa' )
277+ handle = ctypes . util . find_library ('numa' )
278278 if handle is None :
279279 return
280280 lib = ctypes .CDLL (handle )
You can’t perform that action at this time.
0 commit comments