From 934accc304bb26349081eaeb7f772af1569bb087 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 21 Jan 2019 15:43:16 -0500 Subject: [PATCH] Allow usage of dependency files from the client --- korman/exporter/outfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/korman/exporter/outfile.py b/korman/exporter/outfile.py index 1842850..70aa892 100644 --- a/korman/exporter/outfile.py +++ b/korman/exporter/outfile.py @@ -366,7 +366,8 @@ class OutputFiles: handle.write(i.file_data) os.utime(dst_path, times) elif i.file_path: - shutil.copy2(i.file_path, dst_path) + if i.file_path != dst_path: + shutil.copy2(i.file_path, dst_path) else: report.warn("No data found for dependency file '{}'. It will not be copied into the export directory.", str(i.dirname / i.filename), indent=1)