From 0986b36b39e602ff0f48e89fb85a5a6bba1e504e Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sun, 16 Feb 2020 09:47:50 +0100 Subject: [PATCH] remove tautologous if --- MultiMystery.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/MultiMystery.py b/MultiMystery.py index 493eeca5e3..21d2217377 100644 --- a/MultiMystery.py +++ b/MultiMystery.py @@ -92,12 +92,11 @@ if __name__ == "__main__": if player_name: for file in os.listdir(output_path): if player_name in file: - romfilename = os.path.join(output_path, file) import webbrowser - if os.path.exists(romfilename): - print(f"Launching ROM file {romfilename}") - webbrowser.open(romfilename) + romfilename = os.path.join(output_path, file) + print(f"Launching ROM file {romfilename}") + webbrowser.open(romfilename) break if zip_roms: