Copy over the result, cleanup afterwards

This commit is contained in:
Bo Maryniuk 2019-02-08 15:36:06 +01:00
parent c6792ee251
commit d841164ae3

View file

@ -556,6 +556,10 @@ def gen_thin(cachedir, extra_mods='', overwrite=False, so_mods='',
os.chdir(start_dir)
tfp.close()
if _six.PY3:
os.sync()
shutil.move(tmp_thintar, thintar)
return thintar