Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Dec 27, 2023
1 parent fa9276f commit c655e76
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions py/minimint/mist_interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ def writer(url, pref):
fdout.write(fd.read())
fdout.close()
fd.close()
fname_out = os.path.basename(fname_out)
if os.name == 'nt':
fname_out1 = fname_out.replace('.txz', '.tar')
cmd = (f'cd /d {pref} && '
Expand All @@ -180,12 +179,8 @@ def writer(url, pref):
else:
cmd = f'cd {pref}; tar xfJ {fname_out}'
ret = subprocess.run(cmd, capture_output=True, shell=True, timeout=60)
fname_out2 = fname_out1.replace('.tar', '')
aa = glob.glob(os.path.join(pref, fname_out2, '*'))
print(cmd, fname_out, fname_out1,
ret.stdout.decode() + ret.stderr.decode())
print((aa))
assert len(aa) > 0
# ret = subprocess.run(cmd, shell=True, timeout=60)
if ret.returncode != 0:
raise RuntimeError('Failed to untar the files' +
Expand Down

0 comments on commit c655e76

Please sign in to comment.