Browse Source

fixed autorun menu loop

psy 5 months ago
parent
commit
1f768889f9
1 changed files with 4 additions and 1 deletions
  1. 4 1
      pyTREMOR.py

+ 4 - 1
pyTREMOR.py

@@ -83,7 +83,10 @@ def sonify(network_conf, station_conf, channel_conf, starttime_conf, endtime_con
             mp4_file = mp4_files[0] 
             mp4_file = mp4_files[0] 
             shutil.move(mp4_file, new_filepath)
             shutil.move(mp4_file, new_filepath)
             print(f"Video moved and renamed to: {new_filepath}")
             print(f"Video moved and renamed to: {new_filepath}")
-            menu()
+            if "--autorun" in sys.argv:
+                pass
+            else:
+                menu()
             return True
             return True
         else:
         else:
             print("No .mp4 file found in the directory.")
             print("No .mp4 file found in the directory.")