fediplug/fediplay/env.py

15 lines
367 B
Python
Raw Normal View History

2018-03-17 20:04:04 -04:00
'''Environment variable management.'''
from os import getenv
from dotenv import load_dotenv, find_dotenv
def no_check_certificate():
return bool(getenv('FEDIPLAY_NO_CHECK_CERTIFICATE'))
def play_command():
return (getenv('FEDIPLAY_PLAY_COMMAND') or
'ffplay -v 0 -nostats -hide_banner -autoexit -nodisp {filename}')
load_dotenv(find_dotenv())