#! /usr/bin/env python3
# -*- coding: utf-8 -*-
from . import fetchers, gunicorn, misc_func, configuration

@@ -88,20 +88,786 @@
 func
-, configuration
+%0Aimport configparser%0Aimport os%0A%0Adef _get_filename():%0A    %22%22%22Return the configuration file path.%22%22%22%0A    appname = 'dlstats'%0A    if os.name == 'posix':%0A        if os.path.isfile(os.environ%5B%22HOME%22%5D+'/.'+appname):%0A            return os.environ%5B%22HOME%22%5D+'/.'+appname%0A        elif os.path.isfile('/etc/'+appname):%0A            return '/etc/'+appname%0A        else:%0A            raise FileNotFoundError('No configuration file found.')%0A    elif os.name == 'mac':%0A        return (%22%25s/Library/Application Support/%25s%22 %25 (os.environ%5B%22HOME%22%5D, appname))%0A    elif os.name == 'nt':%0A        return (%22%25s%5CApplication Data%5C%25s%22 %25 (os.environ%5B%22HOMEPATH%22%5D, appname))%0A    else:%0A        raise UnsupportedOSError(os.name)%0A%0A_filename = _get_filename()%0A%0Aconfig = configparser.ConfigParser()%0Aconfig.read(_filename)
 %0A

Make private attributes private