TSMasterAPI 2024.8.7.1162__tar.gz → 2024.8.21.1167__tar.gz
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.
- {TSMasterAPI-2024.8.7.1162 → TSMasterAPI-2024.8.21.1167}/PKG-INFO +1 -1
- {TSMasterAPI-2024.8.7.1162 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/TSDirver.py +10 -1
- {TSMasterAPI-2024.8.7.1162 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/TSEnum.py +40 -1
- TSMasterAPI-2024.8.21.1167/TSMasterAPI/__init__.py +2 -0
- TSMasterAPI-2024.8.21.1167/TSMasterAPI/windows/bin/TSMaster.dll +0 -0
- TSMasterAPI-2024.8.21.1167/TSMasterAPI/windows/bin64/TSMaster.dll +0 -0
- {TSMasterAPI-2024.8.7.1162 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI.egg-info/PKG-INFO +1 -1
- {TSMasterAPI-2024.8.7.1162 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI.egg-info/SOURCES.txt +3 -1
- {TSMasterAPI-2024.8.7.1162 → TSMasterAPI-2024.8.21.1167}/setup.py +4 -0
- TSMasterAPI-2024.8.7.1162/TSMasterAPI/__init__.py +0 -2
- {TSMasterAPI-2024.8.7.1162 → TSMasterAPI-2024.8.21.1167}/README.rst +0 -0
- {TSMasterAPI-2024.8.7.1162 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/TSAPI.py +0 -0
- {TSMasterAPI-2024.8.7.1162 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/TSCallback.py +0 -0
- {TSMasterAPI-2024.8.7.1162 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/TSFibex_parse.py +0 -0
- {TSMasterAPI-2024.8.7.1162 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/TSMasterAPI.py +0 -0
- {TSMasterAPI-2024.8.7.1162 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/TSStruct.py +0 -0
- {TSMasterAPI-2024.8.7.1162 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI.egg-info/dependency_links.txt +0 -0
- {TSMasterAPI-2024.8.7.1162 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI.egg-info/top_level.txt +0 -0
- {TSMasterAPI-2024.8.7.1162 → TSMasterAPI-2024.8.21.1167}/license.txt +0 -0
- {TSMasterAPI-2024.8.7.1162 → TSMasterAPI-2024.8.21.1167}/setup.cfg +0 -0
@@ -11,6 +11,8 @@ import platform
|
|
11
11
|
|
12
12
|
TSMaster_location = r"Software\TOSUN\TSMaster"
|
13
13
|
|
14
|
+
_curr_path = os.path.dirname(__file__)
|
15
|
+
|
14
16
|
key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, TSMaster_location)
|
15
17
|
|
16
18
|
_arch, _os = platform.architecture()
|
@@ -42,6 +44,13 @@ if dll_path != '':
|
|
42
44
|
dllPath = os.path.split(dll_path)[0]
|
43
45
|
dll = WinDLL(dll_path)
|
44
46
|
except Exception as r:
|
45
|
-
|
47
|
+
try:
|
48
|
+
if _arch == '32bit':
|
49
|
+
dll_path = _curr_path + "\\windows\\bin\\TSMaster.dll"
|
50
|
+
else:
|
51
|
+
dll_path = _curr_path + "\\windows\\bin64\\TSMaster.dll"
|
52
|
+
dll = WinDLL(dll_path)
|
53
|
+
except Exception as r:
|
54
|
+
print(r"Could not load the TOSUN DLL from '%s'. Error: %s" % (dll_path, r))
|
46
55
|
else:
|
47
56
|
print(r"Could not load the TOSUN DLL Error: Registry not found")
|
@@ -25,7 +25,8 @@ class _TLIBBusToolDeviceType(CEnum):
|
|
25
25
|
TS_WIRELESS_OBD = 10
|
26
26
|
TS_USB_DEVICE_EX = 11
|
27
27
|
IXXAT_USB_DEVICE = 12
|
28
|
-
|
28
|
+
TS_ETH_IF_DEVICE = 13
|
29
|
+
BUS_DEV_TYPE_COUNT = 14
|
29
30
|
TLIBBusToolDeviceType = c_int32
|
30
31
|
PLIBBusToolDeviceType = ps32
|
31
32
|
|
@@ -260,6 +261,44 @@ class _TSTIMSignalStatus(CEnum):
|
|
260
261
|
TSTIMSignalStatus = c_int32
|
261
262
|
PSTIMSignalStatus = ps32
|
262
263
|
|
264
|
+
class _TLIBPanelSignalType(CEnum):
|
265
|
+
pstNone = 0
|
266
|
+
pstCANSignal = 1
|
267
|
+
pstLINSignal = 2
|
268
|
+
pstSystemVar = 3
|
269
|
+
pstFlexRaySignal = 4
|
270
|
+
pstAPICall = 5
|
271
|
+
TLIBPanelSignalType = c_int32
|
272
|
+
PLIBPanelSignalType = ps32
|
273
|
+
|
274
|
+
class _TLIBPanelControlType(CEnum):
|
275
|
+
pctText = 0
|
276
|
+
pctImage = 1
|
277
|
+
pctGroupBox = 2
|
278
|
+
pctPanel = 3
|
279
|
+
pctPathButton = 4
|
280
|
+
pctCheckBox = 5
|
281
|
+
pctTrackBar = 6
|
282
|
+
pctScrollBar = 7
|
283
|
+
pctInputOutputBox = 8
|
284
|
+
pctImageButton = 9
|
285
|
+
pctSelector = 10
|
286
|
+
pctButton = 11
|
287
|
+
pctProgressBar = 12
|
288
|
+
pctRadioButton = 13
|
289
|
+
pctStartStopButton = 14
|
290
|
+
pctSwitch = 15
|
291
|
+
pctLED = 16
|
292
|
+
pctPageControl = 17
|
293
|
+
pctGauge = 18
|
294
|
+
pctGraphics = 19
|
295
|
+
pctPie = 20
|
296
|
+
pctRelationChart = 21
|
297
|
+
pctMemo = 22
|
298
|
+
pctScrollBox = 23
|
299
|
+
TLIBPanelControlType = c_int32
|
300
|
+
PLIBPanelControlType = ps32
|
301
|
+
|
263
302
|
class _TLIBCANFDControllerType(CEnum):
|
264
303
|
lfdtCAN = 0
|
265
304
|
lfdtISOCAN = 1
|
Binary file
|
Binary file
|
@@ -12,4 +12,6 @@ TSMasterAPI/__init__.py
|
|
12
12
|
TSMasterAPI.egg-info/PKG-INFO
|
13
13
|
TSMasterAPI.egg-info/SOURCES.txt
|
14
14
|
TSMasterAPI.egg-info/dependency_links.txt
|
15
|
-
TSMasterAPI.egg-info/top_level.txt
|
15
|
+
TSMasterAPI.egg-info/top_level.txt
|
16
|
+
TSMasterAPI/windows/bin/TSMaster.dll
|
17
|
+
TSMasterAPI/windows/bin64/TSMaster.dll
|
@@ -29,6 +29,10 @@ setup(name='TSMasterAPI', # 包名
|
|
29
29
|
install_requires=[],
|
30
30
|
license='Apache License',
|
31
31
|
packages=find_packages(),
|
32
|
+
data_files=[
|
33
|
+
('./TSMasterAPI/windows/bin', ['./TSMasterAPI/windows/bin/TSMaster.dll']),
|
34
|
+
('./TSMasterAPI/windows/bin64', ['./TSMasterAPI/windows/bin64/TSMaster.dll'])
|
35
|
+
],
|
32
36
|
platforms=["WINDOWS"],
|
33
37
|
classifiers=[
|
34
38
|
'Intended Audience :: Developers',
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{TSMasterAPI-2024.8.7.1162 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|