From 860b46a5133bc398938cb53b42ff68b34eb2cd7b Mon Sep 17 00:00:00 2001 From: vg Date: Mon, 4 Mar 2024 23:33:06 +0100 Subject: git-sync on dita --- gamechestcli/gamechest/runners/extract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gamechestcli') diff --git a/gamechestcli/gamechest/runners/extract.py b/gamechestcli/gamechest/runners/extract.py index 1715bd6..cb8009a 100644 --- a/gamechestcli/gamechest/runners/extract.py +++ b/gamechestcli/gamechest/runners/extract.py @@ -34,10 +34,10 @@ class Extract(RunnerBase): lzip_command = '/usr/bin/lzip' plzip_command = '/usr/bin/plzip' uncompress_command_to_use = [lzip_command, '--decompress'] - if src.endswith('.tlz'): + if str(src).endswith('.tlz'): if os.path.exists(plzip_command): uncompress_command_to_use = [plzip_command, '--decompress'] - elif src.endswith('.tzst'): + elif str(src).endswith('.tzst'): uncompress_command_to_use = ['zstd', '-T0', '-d', '--stdout'] self.zip_proc = subprocess.Popen( uncompress_command_to_use, -- cgit v1.2.3