From 7640159fe500e8dab301719800f1e3bd80689cff Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 13 Jul 2021 10:17:18 +0200 Subject: [PATCH] Allow to override output_dir with env var --- video-feed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video-feed.py b/video-feed.py index ca77984..bfd1a6a 100644 --- a/video-feed.py +++ b/video-feed.py @@ -83,7 +83,7 @@ def create_post(post_directory, video_metadata): -output_dir = '/home/r/Programming/lumbung.space/lumbung.space-web/content/video' +output_dir = os.environ.get('OUTPUT_DIR', '/home/r/Programming/lumbung.space/lumbung.space-web/content/video') if not os.path.exists(output_dir): os.mkdir(output_dir)