Skip to content

Commit

Permalink
Update __init__.py - Fix Linux Platform handle
Browse files Browse the repository at this point in the history
  • Loading branch information
timonmerk authored Oct 31, 2024
1 parent ea669e2 commit 6622071
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions py_neuromodulation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
case "darwin":
KEY = PLATFORM + "_" + platform.processor()
case "linux":
DIST = platform.freedesktop_os_release()["VERSION_CODENAME"]
KEY = PLATFORM + "_" + DIST + "_" + ARCH
if "VERSION_CODENAME" in platform.freedesktop_os_release().keys():
DIST = platform.freedesktop_os_release()["VERSION_CODENAME"]
KEY = PLATFORM + "_" + DIST + "_" + ARCH
if KEY not in LSL_DICT:
KEY = PLATFORM + "_" + ARCH
case _:
Expand Down

0 comments on commit 6622071

Please sign in to comment.