Initial support for _F output file

This commit is contained in:
2026-04-25 09:17:48 +02:00
parent 95e944f983
commit d7a8e03d2c
4 changed files with 106 additions and 15 deletions
+2 -2
View File
@@ -73,13 +73,13 @@ def main():
dest_path = os.path.join(target_subdir, dest_folder_name)
os.makedirs(dest_path, exist_ok=True)
links = [("Concat.jpg", f"{safe_name}.jpg"), ("score.json", "score.json")]
links = [("Concat.jpg", f"{safe_name}.jpg"),("Concat_F.pdf", f"{safe_name}.pdf"), ("score.json", "score.json")]
for src_name, dst_name in links:
src_file = os.path.join(source_folder, src_name)
dst_link = os.path.join(dest_path, dst_name)
try:
if os.path.lexists(dst_link): os.remove(dst_link)
os.symlink(src_file, dst_link)
if os.path.exists(src_file): os.symlink(src_file, dst_link)
except Exception as e:
print(f"Error linking {src_name} for {dest_folder_name}: {e}")