Move rewritten blend files instead of copying them

This will cause a nice speedup if the temporary directory happens to be on
the same file system as the target directory for the BAT Pack. This can be
influenced by setting an environment variable; see the documentation for
[tempfile.gettempdir](https://docs.python.org/3/library/tempfile.html#tempfile.gettempdir)
This commit is contained in:
Sybren A. Stüvel
2018-03-09 12:47:50 +01:00
parent 824ca4bcb7
commit ac3f6142b3
3 changed files with 64 additions and 34 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ def cli_pack(args):
packer.execute()
except pack.queued_copy.FileCopyError as ex:
log.error("%d files couldn't be copied, starting with %s",
len(ex.files_not_copied), ex.files_not_copied[0])
len(ex.files_remaining), ex.files_remaining[0])
raise SystemExit(1)