Skip to content

Commit

Permalink
File
Browse files Browse the repository at this point in the history
  • Loading branch information
akruhler committed Apr 5, 2024
1 parent 9e34405 commit e3c8249
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions start_all_videos.py
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit e3c8249

Please sign in to comment.