Skip to content

Commit

Permalink
deal with windows specifics
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Dec 26, 2023
1 parent 5e2e057 commit 94e3ee6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion py/minimint/mist_interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@ def writer(url, pref):
fdout.close()
fd.close()
cmd = 'cd %s; tar xfJ %s' % (pref, fname)
os.system(cmd)
if os.name == 'nt':
cmd = 'cd %s ; tar.exe xFJ %s' % (pref, fname)
status = os.system(cmd)
if status != 0:
raise RuntimeError('Failed to untar the files')

with tempfile.TemporaryDirectory(dir=tmp_prefix) as T:
for curfilt in filters:
Expand Down

0 comments on commit 94e3ee6

Please sign in to comment.