Development

This commit is contained in:
Matthew Grotke 2026-06-11 01:55:15 -04:00
parent ce280b6d7a
commit 337c0daf22
3 changed files with 10 additions and 3 deletions

View file

@ -14,8 +14,15 @@ def is_production():
return not os.environ.get('DEV_MODE', '').lower() in ('1', 'true', 'yes')
def routlin_location():
return os.environ.get('ROUTLIN_LOCATION', '/routlin_location')
def is_pro():
return bool(os.environ.get('LICENSE', '').strip())
try:
return bool(open(f'{routlin_location()}/.license').read().strip())
except OSError:
return False
def get_host_utc_offset():