File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 3
3
import ctypes
4
4
import pathlib
5
5
import time
6
+ from sys import platform
6
7
7
8
from PIL import Image , ImageSequence
8
9
9
10
10
11
# 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' )
15
16
16
17
from build .extending import ZeDMD_ext
17
18
You can’t perform that action at this time.
0 commit comments