10 lines
185 B
Python
10 lines
185 B
Python
|
|
import os
|
||
|
|
|
||
|
|
|
||
|
|
def is_production():
|
||
|
|
return os.environ.get('PRODUCTION_MODE', '').lower() in ('1', 'true', 'yes')
|
||
|
|
|
||
|
|
|
||
|
|
def is_pro():
|
||
|
|
return bool(os.environ.get('LICENSE', '').strip())
|