Skip to content

Commit a9613d8

Browse files
committed
avoid running plexon tests
1 parent c96ec93 commit a9613d8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
.idea
1616
*.swp
1717
*.swo
18+
.vscode
19+
1820

1921
# Compiled source #
2022
###################

neo/rawio/plexon2rawio/pypl2/pypl2lib.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,21 @@
99
# copyright notice is kept intact.
1010

1111
from sys import platform
12-
import os
12+
import subprocess
1313
import pathlib
1414
import warnings
1515

1616
if any(platform.startswith(name) for name in ("linux", "darwin", "freebsd")):
17+
try:
18+
result_wine = subprocess.run(["dpkg", "-l", "wine"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True)
19+
except subprocess.CalledProcessError:
20+
raise ImportError("Wine is not installed. Please install wine to use the PL2FileReader.dll")
21+
1722
from zugbruecke import CtypesSession
1823

1924
ctypes = CtypesSession(log_level=100)
2025

26+
2127
elif platform.startswith("win"):
2228
import ctypes
2329
else:

0 commit comments

Comments
 (0)