Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _get_library_name():
try:
return ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL
except KeyError:
raise errors.UnsupportedConfigurationError
def _get_library_type():
try:
return _library_info[platform.system()][platform.architecture()[0]]['type']
except KeyError:
raise errors.UnsupportedConfigurationError
def _get_library_name():
try:
return _library_info[platform.system()][platform.architecture()[0]]['name']
except KeyError:
raise errors.UnsupportedConfigurationError