We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c430e27 commit 03dc022Copy full SHA for 03dc022
1 file changed
python_package/brainflow/ml_model.py
@@ -94,7 +94,9 @@ def __init__(self):
94
dir_path = os.path.abspath(os.path.dirname(full_path))
95
try:
96
os.add_dll_directory(dir_path)
97
- except:
+ except (AttributeError, OSError):
98
+ # Ignore when API is unavailable or directory registration fails;
99
+ # PATH/LD_LIBRARY_PATH fallback is applied below.
100
pass
101
if platform.system() == 'Windows':
102
os.environ['PATH'] = dir_path + os.pathsep + os.environ.get('PATH', '')
0 commit comments