Skip to content

Commit

Permalink
Try setting delete=False on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nvictus committed Feb 1, 2024
1 parent e5102fa commit 0037dac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cooler/create/_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,10 @@ def create_from_unordered(
temp_files = []

# Sort pass
import os
is_windows = os.name == 'nt'
if is_windows:
delete_temp = False
tf = tempfile.NamedTemporaryFile(
suffix=".multi.cool", delete=delete_temp, dir=temp_dir
)
Expand Down

0 comments on commit 0037dac

Please sign in to comment.