Allow to override output_dir with env var #1

Merged
rra merged 1 commits from :env-var-output-dir into master 2021-07-13 11:06:09 +02:00
Showing only changes of commit 7640159fe5 - Show all commits

View File

@ -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)