TSMasterAPI 2024.8.19.1167__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.19.1167 → TSMasterAPI-2024.8.21.1167}/PKG-INFO +1 -1
- {TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/TSDirver.py +10 -1
- TSMasterAPI-2024.8.21.1167/TSMasterAPI/__init__.py +2 -0
- {TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI.egg-info/PKG-INFO +1 -1
- TSMasterAPI-2024.8.19.1167/TSMasterAPI/__init__.py +0 -2
- {TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/README.rst +0 -0
- {TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/TSAPI.py +0 -0
- {TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/TSCallback.py +0 -0
- {TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/TSEnum.py +0 -0
- {TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/TSFibex_parse.py +0 -0
- {TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/TSMasterAPI.py +0 -0
- {TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/TSStruct.py +0 -0
- {TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/windows/bin/TSMaster.dll +0 -0
- {TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/windows/bin64/TSMaster.dll +0 -0
- {TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI.egg-info/SOURCES.txt +0 -0
- {TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI.egg-info/dependency_links.txt +0 -0
- {TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI.egg-info/top_level.txt +0 -0
- {TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/license.txt +0 -0
- {TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/setup.cfg +0 -0
- {TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/setup.py +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")
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/windows/bin/TSMaster.dll
RENAMED
File without changes
|
{TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI/windows/bin64/TSMaster.dll
RENAMED
File without changes
|
File without changes
|
{TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI.egg-info/dependency_links.txt
RENAMED
File without changes
|
{TSMasterAPI-2024.8.19.1167 → TSMasterAPI-2024.8.21.1167}/TSMasterAPI.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|