Browse Source

Merge pull request 'Allow to override output_dir with env var' (#1) from decentral1se/lumbung-video-prototype:env-var-output-dir into master

Reviewed-on: https://git.vvvvvvaria.org/rra/lumbung-video-prototype/pulls/1
master
rra 3 years ago
parent
commit
23e3751360
  1. 2
      video-feed.py

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

Loading…
Cancel
Save