JOE FIGHT!!!
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user