JOE FIGHT!!!

This commit is contained in:
2025-06-18 10:36:16 +02:00
parent 4c6bb2dca3
commit 871d325d2c

View File

@@ -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()