Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion python_package/brainflow/ml_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ def __init__(self):
dir_path = os.path.abspath(os.path.dirname(full_path))
try:
os.add_dll_directory(dir_path)
except:
except (AttributeError, OSError):
# Ignore when API is unavailable or directory registration fails;
# PATH/LD_LIBRARY_PATH fallback is applied below.
pass
if platform.system() == 'Windows':
os.environ['PATH'] = dir_path + os.pathsep + os.environ.get('PATH', '')
Expand Down
Loading