Skip to content

Commit 67d1262

Browse files
committed
Update for targets
1 parent 052a8aa commit 67d1262

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/diffpy/pdfmorph/pdfmorphapp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -536,9 +536,9 @@ def multiple_targets(parser, opts, pargs, stdout_flag=True):
536536
to_remove = []
537537
for target in target_list:
538538
if target.is_dir():
539-
target_list.remove(target)
540-
for morph in to_remove:
541-
morph_list.remove(morph)
539+
to_remove.append(target)
540+
for target in to_remove:
541+
target_list.remove(target)
542542

543543
# Do not morph morph_file against itself if it is in the same directory
544544
if morph_file in target_list:

0 commit comments

Comments
 (0)