Skip to content

Commit

Permalink
try to fix untar.xz
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Dec 26, 2023
1 parent 3f6df33 commit 2b6911a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py/minimint/mist_interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def writer(url, pref):
fd.close()
cmd = f'cd {pref}; tar xfJ {fname_out}'
if os.name == 'nt':
cmd = f'cd {pref} && tar.exe -xfJ {fname_out}'
fname_out1 = fname_out.replace('.xz', '')
cmd = f'cd {pref} && 7z x {fname_out} && tar -xf {fname_out1}'

ret = subprocess.run(cmd, capture_output=True, shell=True)
if ret.returncode != 0:
Expand Down

0 comments on commit 2b6911a

Please sign in to comment.