summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvg <vgm+dev@devys.org>2024-03-04 23:33:06 +0100
committervg <vgm+dev@devys.org>2024-03-04 23:33:06 +0100
commit860b46a5133bc398938cb53b42ff68b34eb2cd7b (patch)
treeb5be1dfd8490e600255e24c48b9d373f5608fa2c
parent3a663b7b4b8f82740c58eadf003a0c7e3e08ec26 (diff)
downloadgamechest-860b46a5133bc398938cb53b42ff68b34eb2cd7b.tar.gz
gamechest-860b46a5133bc398938cb53b42ff68b34eb2cd7b.tar.bz2
gamechest-860b46a5133bc398938cb53b42ff68b34eb2cd7b.zip
git-sync on dita
-rw-r--r--gamechestcli/gamechest/runners/extract.py4
1 files changed, 2 insertions, 2 deletions
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,