Skip to content

Commit 4fdd186

Browse files
committed
wip
1 parent 1229ddd commit 4fdd186

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/aiida/tools/archive/create.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,10 @@ def querybuilder():
283283
# Create and open the archive for writing.
284284
# We create in a temp dir then move to final place at end,
285285
# so that the user cannot end up with a half written archive on errors
286-
with tempfile.TemporaryDirectory() as tmpdir:
286+
import ipdb; ipdb.set_trace()
287+
base_temp_dir = '/mount' # or whatever directory you want to use
288+
with tempfile.TemporaryDirectory(dir=base_temp_dir) as tmpdir:
289+
# with tempfile.TemporaryDirectory() as tmpdir:
287290
tmp_filename = Path(tmpdir) / 'export.zip'
288291
with archive_format.open(tmp_filename, mode='x', compression=compression) as writer:
289292
# add metadata

0 commit comments

Comments
 (0)