From 871d325d2ca9fda7771f449bf700d85c85907257 Mon Sep 17 00:00:00 2001 From: Andrea Fiorencis Date: Wed, 18 Jun 2025 10:36:16 +0200 Subject: [PATCH] JOE FIGHT!!! --- Fotovoltaico.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Fotovoltaico.py b/Fotovoltaico.py index db76315..690aefd 100644 --- a/Fotovoltaico.py +++ b/Fotovoltaico.py @@ -16,9 +16,11 @@ path_export = str(config['filename_output_csv_gen_pv']) # path to save the resul # IGNORE THIS isJoe = config['joe_fight'] +joePlaying = False if(isJoe == True): if shutil.which('ffplay') is not None: - joe = subprocess.Popen(['ffplay', 'assets/joefight.mp4']) + joePlaying = True + joe = subprocess.Popen(['ffplay', '-fs', 'assets/joefight.mp4']) time.sleep(25) # deve arrivare il drop else: print("ffplay non installato, no joe fight.") @@ -51,6 +53,6 @@ result_ac_energies_to_csv_df = suppress_printing(simulate_unstacked_productivity result_ac_energies_to_csv_df.to_csv(path_export, encoding='utf-8') os.startfile(path_export) -if isJoe: +if joePlaying: joe.terminate() joe.kill() \ No newline at end of file