remove tautologous if
This commit is contained in:
parent
9047ddb479
commit
0986b36b39
|
@ -92,12 +92,11 @@ if __name__ == "__main__":
|
||||||
if player_name:
|
if player_name:
|
||||||
for file in os.listdir(output_path):
|
for file in os.listdir(output_path):
|
||||||
if player_name in file:
|
if player_name in file:
|
||||||
romfilename = os.path.join(output_path, file)
|
|
||||||
import webbrowser
|
import webbrowser
|
||||||
|
|
||||||
if os.path.exists(romfilename):
|
romfilename = os.path.join(output_path, file)
|
||||||
print(f"Launching ROM file {romfilename}")
|
print(f"Launching ROM file {romfilename}")
|
||||||
webbrowser.open(romfilename)
|
webbrowser.open(romfilename)
|
||||||
break
|
break
|
||||||
|
|
||||||
if zip_roms:
|
if zip_roms:
|
||||||
|
|
Loading…
Reference in New Issue