Skip to content

Commit 759b58c

Browse files
committed
corrected concatinating script for martha if only one file was found
1 parent 78056df commit 759b58c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/interface/concat_pollyxt_lvl0.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,10 @@ def concat_files():
717717

718718
if len(sel_polly_files_list) == 1:
719719
print("\nOnly one file found. Nothing to merge!\n")
720-
os.rename(sel_polly_files_list[0],Path(output_path,filestring))
720+
if device == "martha":
721+
shutil.copy2(sel_polly_files_list[0],Path(output_path,filestring))
722+
else:
723+
os.rename(sel_polly_files_list[0],Path(output_path,filestring))
721724
return True
722725
else:
723726
# sel_polly_files_list = [ str(el) for el in sel_polly_files_list]

0 commit comments

Comments
 (0)