from os.path import join, expanduser


class Settings:
    HOME = expanduser('~')
    PROFILES_DIR = 'profiles'
    LOG_DIR = 'logs'
    DUMMY_KAY_VAR = 'KEY=var'

    def __init__(self, name='poket'):
        cls = type(self)
        self.name = name
        cls.PREFIX = name.upper() + '_'
        cls.ROOT_DIR = '.' + name.lower()

    @classmethod
    def get_root_dir(cls):
        return join(cls.HOME, cls.ROOT_DIR)


    @classmethod
    def get_log_dir(cls):
        return join(cls.get_root_dir(), cls.LOG_DIR)


    @classmethod
    def get_profiles_dir(cls):
        return join(cls.get_root_dir(), cls.PROFILES_DIR)


settings = Settings()