I am trying to compare a list of files existing in a folder with some in another folder using Winmerge. I would like the first comparison to be opened in Winmerge and upon its closure, the second comparison is opened so on and so forth until there are no more files to be compared.
I have tried calling subprocess.Popen() in a loop for all files, but this launches multiple Winmerge windows.
for file in file_list:
get_comparison = subprocess.Popen('WinmergeU.exe ' +'D:\database_1\'+file +'D:\database_2\'+file, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
I expect only one process of Winmerge to be running at a time