From e3c824931bf704c9d890277c8367bd560ff683fa Mon Sep 17 00:00:00 2001 From: "antonio.kruehler" <63720596+proviq@users.noreply.github.com> Date: Sat, 6 Apr 2024 01:21:43 +0200 Subject: [PATCH] File --- start_all_videos.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 start_all_videos.py diff --git a/start_all_videos.py b/start_all_videos.py new file mode 100644 index 00000000..a66653bb --- /dev/null +++ b/start_all_videos.py @@ -0,0 +1,7 @@ +import os + +video_dir = "/root/src" +for i, file in enumerate(os.listdir(video_dir)): + if os.path.isfile(os.path.join(video_dir, file)): + os.system(f"VID={i} VIDEO_PATH={os.path.join(video_dir, file)} screen -d -m docker compose -p inst{i} up") + print(f"VID={i} VIDEO_PATH={os.path.join(video_dir, file)} screen -d -m docker compose -p inst{i} up") \ No newline at end of file