cuvis-il 3.4.0__py314-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.
cuvis_il/__init__.py ADDED
@@ -0,0 +1,20 @@
1
+ import os
2
+ import platform
3
+ import sys
4
+
5
+ lib_dir = os.getenv("CUVIS")
6
+ if lib_dir is None:
7
+ print('CUVIS environmental variable is not set!')
8
+ sys.exit(1)
9
+ if platform.system() == "Windows":
10
+ os.add_dll_directory(lib_dir)
11
+ add_il = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
12
+ os.environ['PATH'] += os.pathsep + add_il
13
+ sys.path.append(str(add_il))
14
+ elif platform.system() == 'Linux':
15
+ os.environ['PATH'] = lib_dir + os.pathsep + os.environ['PATH']
16
+ else:
17
+ raise NotImplementedError('Invalid operating system detected!')
18
+ # sys.exit(1)
19
+
20
+ del os, platform, sys
Binary file