From c2bd2db84ccb21312311199787614b387b183521 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Mon, 12 Oct 2015 22:15:24 +0200 Subject: [PATCH] Only skip if the dest did not exist --- patacrep/songs/convert/__main__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/patacrep/songs/convert/__main__.py b/patacrep/songs/convert/__main__.py index f289fdc8..42728af7 100644 --- a/patacrep/songs/convert/__main__.py +++ b/patacrep/songs/convert/__main__.py @@ -58,9 +58,10 @@ if __name__ == "__main__": song = song_parsers[source]("", file, DEFAULT_CONFIG) try: destname = "{}.{}".format(".".join(file.split(".")[:-1]), dest) - if os.path.exists(destname) and not remember: + dest_exists = os.path.exists(destname) + if dest_exists and not remember: overwrite, remember = confirm(destname) - if not overwrite: + if dest_exists and not overwrite: continue converted = song.render(dest) with open(destname, "w") as destfile: