robotpy-native-datalog 2027.0.0a2__py3-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ # This file is automatically generated, DO NOT EDIT
2
+ # fmt: off
3
+
4
+ import native.wpiutil._init_robotpy_native_wpiutil
5
+
6
+ def __load_library():
7
+ from os.path import abspath, join, dirname, exists
8
+ from ctypes import cdll
9
+
10
+ root = abspath(dirname(__file__))
11
+
12
+ lib_path = join(root, 'lib', 'datalog.dll')
13
+
14
+ try:
15
+ return cdll.LoadLibrary(lib_path)
16
+ except FileNotFoundError:
17
+ if not exists(lib_path):
18
+ raise FileNotFoundError("datalog.dll was not found on your system. Is this package correctly installed?")
19
+ raise Exception("datalog.dll could not be loaded. Do you have Visual Studio C++ Redistributible installed?")
20
+
21
+ __lib = __load_library()
22
+