Development
This commit is contained in:
parent
ce280b6d7a
commit
337c0daf22
3 changed files with 10 additions and 3 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue