Probably because the class *RemoveDuplicates *initializes at import, not at initialization. If the class gets reused, the global data variables get reused. That works fine as a standalone, but not if reused inside Leo.
On Saturday, January 29, 2022 at 6:31:55 PM UTC-5 lewis wrote: > Running externally works fine. However running in Leo as a script there > are 3 issues. > Quit button does not work. > A single file is reported as a duplicate. > With a single file - if you rerun the script the number of duplicate files > reported increments by 1. > > Regards > Lewis > On Saturday, January 29, 2022 at 10:32:04 PM UTC+11 Edward K. Ream wrote: > >> On Fri, Jan 28, 2022 at 7:55 PM lewis <lewi...@fastmail.com.au> wrote: >> >>> Docstring needs updating >>> >> >> Thanks for this report. >> >> Rev .31f45a5 in devel changes the docstring in three places and removes >> the unused 'c' positional arg from the run method. >> >> Edward >> > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/1e7576ff-111b-473e-b6d8-7c63d4ca7a61n%40googlegroups.com.