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
5 changes: 4 additions & 1 deletion python_package/brainflow/board_shim.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ def __init__(self):
# for python 3.8 PATH env var doesnt work anymore
try:
os.add_dll_directory(dir_path)
except:
except (AttributeError, FileNotFoundError, OSError):
# Best effort only: this may be unavailable or fail on some
# platforms/runtime configurations; PATH/LD_LIBRARY_PATH is
# updated below as a fallback.
pass
if platform.system() == 'Windows':
os.environ['PATH'] = dir_path + os.pathsep + os.environ.get('PATH', '')
Expand Down
Loading