Skip to content

Commit 60a6604

Browse files
committed
restrict to linux
1 parent 5c5784b commit 60a6604

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

neo/rawio/plexon2rawio/pypl2/pypl2lib.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919
if plataform_is_windows:
2020
import ctypes
2121
else:
22-
23-
try:
24-
is_wine_available = subprocess.run(
25-
["wine", "--version"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=False
26-
)
27-
except subprocess.CalledProcessError:
28-
raise ImportError("Wine is not installed. Please install wine to use the PL2FileReader.dll")
22+
pltaform_is_linux = platform.system() == "Linux"
23+
if pltaform_is_linux:
24+
try:
25+
is_wine_available = subprocess.run(
26+
["wine", "--version"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=False
27+
)
28+
except subprocess.CalledProcessError:
29+
raise ImportError("Wine is not installed. Please install wine to use the PL2FileReader.dll")
2930

3031
from zugbruecke import CtypesSession
3132

0 commit comments

Comments
 (0)