Skip to content

Commit a5ccc5e

Browse files
authored
Add support for LZSS tools on MacOS (#169)
1 parent 90a81f5 commit a5ccc5e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

extras/tools/lzss.dylib

17.2 KB
Binary file not shown.

extras/tools/lzss.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#!/usr/bin/python3
22

3+
import platform
34
import sys
45
import ctypes
56

6-
LZSS_SO_FILE = "./lzss.so"
7+
LZSS_SO_EXT = "so" if platform.uname()[0] != "Darwin" else "dylib"
8+
9+
LZSS_SO_FILE = f"./lzss.{LZSS_SO_EXT}"
710

811
if len(sys.argv) != 4:
912
print ("Usage: lzss.py --[encode|decode] infile outfile")

0 commit comments

Comments
 (0)