Skip to content

Commit

Permalink
refactor(interactive.imagetool.manager): add prefix to temporary dire…
Browse files Browse the repository at this point in the history
…ctories for better identification
  • Loading branch information
kmnhan committed Nov 5, 2024
1 parent 13f55f1 commit e56163b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/erlab/interactive/imagetool/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def __init__(self: _ImageToolManagerGUI) -> None:
self.options_layout.addStretch()

# Temporary directory for storing archived data
self._tmp_dir = tempfile.TemporaryDirectory()
self._tmp_dir = tempfile.TemporaryDirectory(prefix="erlab_archive_")

# Store most recent name filter and directory for new windows
self._recent_name_filter: str | None = None
Expand Down Expand Up @@ -807,7 +807,7 @@ def show_in_manager(
darr_list: list[xarray.DataArray] = _parse_input(data)

# Save the data to a temporary file
tmp_dir = tempfile.mkdtemp()
tmp_dir = tempfile.mkdtemp(prefix="erlab_manager_")

files: list[str] = []

Expand Down

0 comments on commit e56163b

Please sign in to comment.