You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
451 B
24 lines
451 B
from couchpotato.core.settings import Settings
|
|
|
|
class Env:
|
|
_debug = False
|
|
_settings = Settings()
|
|
_options = None
|
|
_args = None
|
|
_quiet = False
|
|
|
|
_app_dir = ""
|
|
_data_dir = ""
|
|
_db_path = ""
|
|
|
|
@staticmethod
|
|
def doDebug():
|
|
return Env._debug
|
|
|
|
@staticmethod
|
|
def get(attr):
|
|
return getattr(Env, '_' + attr)
|
|
|
|
@staticmethod
|
|
def set(attr, value):
|
|
return setattr(Env, '_' + attr, value)
|
|
|