Skip to content

Commit 0d5f319

Browse files
authored
add test os
1 parent f12a570 commit 0d5f319

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

extending.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
import ctypes
44
import pathlib
55
import time
6+
from sys import platform
67

78
from PIL import Image, ImageSequence
89

910

1011
# Load ZeDMD library using ctypes
11-
# Comment the first line for Linux and the second one for Win
12-
libzedmd = ctypes.CDLL(str(pathlib.Path(__file__).parent.resolve()) + '/extern/libzedmd/build/Release/zedmd64.dll')
13-
libzedmd = ctypes.CDLL(str(pathlib.Path(__file__).parent.resolve()) + '/extern/libzedmd/build/libzedmd.so')
14-
12+
if platform in ("win32", "cygwin"):
13+
libzedmd = ctypes.CDLL(str(pathlib.Path(__file__).parent.resolve()) + '/extern/libzedmd/build/Release/zedmd64.dll')
14+
else:
15+
libzedmd = ctypes.CDLL(str(pathlib.Path(__file__).parent.resolve()) + '/extern/libzedmd/build/libzedmd.so')
1516

1617
from build.extending import ZeDMD_ext
1718

0 commit comments

Comments
 (0)