Moved tmpdir for swash run to local storage rather than tmpfs
This commit is contained in:
parent
4ec58f4fa8
commit
0c4bc8a69f
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ config.read("config.ini")
|
|||
inp = pathlib.Path(config.get("swash", "input"))
|
||||
out = pathlib.Path(config.get("swash", "out"))
|
||||
|
||||
with tempfile.TemporaryDirectory(prefix="swash_") as tmp_raw:
|
||||
with tempfile.TemporaryDirectory(prefix="swash_", dir=".") as tmp_raw:
|
||||
tmpdir = pathlib.Path(tmp_raw)
|
||||
|
||||
shutil.copy2(inp, tmpdir)
|
||||
|
@ -25,4 +25,4 @@ with tempfile.TemporaryDirectory(prefix="swash_") as tmp_raw:
|
|||
|
||||
if out.exists():
|
||||
shutil.rmtree(out)
|
||||
shutil.copytree(tmpdir, out)
|
||||
shutil.move(tmpdir, out)
|
||||
|
|
Loading…
Reference in a new issue