We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a542418 commit 09b24c8Copy full SHA for 09b24c8
1 file changed
korman/exporter/outfile.py
@@ -390,8 +390,10 @@ def _write_deps(self):
390
handle.write(i.file_data)
391
os.utime(dst_path, times)
392
elif i.file_path:
393
- if i.file_path != dst_path:
394
- shutil.copy2(i.file_path, str(dst_path))
+ try:
+ shutil.copy2(i.file_path, dst_path)
395
+ except shutil.SameFileError:
396
+ pass
397
else:
398
report.warn("No data found for dependency file '{}'. It will not be copied into the export directory.",
399
PurePath(i.dirname, i.filename))
0 commit comments