Initial support for _F output file
This commit is contained in:
+2
-2
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user