Shofel2_T124_python/venv/lib/python3.10/site-packages/libusb/_dll.py

13 lines
345 B
Python
Raw Normal View History

2024-05-25 16:45:07 +00:00
# Copyright (c) 2016-2022 Adam Karpierz
# Licensed under the zlib/libpng License
# https://opensource.org/licenses/Zlib
from ._platform import DLL_PATH, DLL, dlclose
try:
dll = DLL(DLL_PATH)
except OSError as exc: # pragma: no cover
raise exc
except Exception as exc: # pragma: no cover
raise OSError("{}".format(exc)) from None