Skip to content

Commit

Permalink
Small BF for avoiding shutil.move to crash when /tmp and work directo…
Browse files Browse the repository at this point in the history
…ry are on different file systems.
  • Loading branch information
lucventurini committed Jul 30, 2019
1 parent c7bad77 commit 2a3c431
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Mikado/scales/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,8 @@ def create_index(reference, queue_logger, index_name, ref_gff=False,
conn.commit()
conn.close()

shutil.move(temp_db, index_name)
shutil.copy(temp_db, index_name)
os.remove(temp_db)

return

Expand Down

0 comments on commit 2a3c431

Please sign in to comment.