15 from os.path
import join, dirname, expanduser, exists
17 DEFAULT_CONFIG = join(dirname(__file__),
'mycroft.conf')
18 SYSTEM_CONFIG = os.environ.get(
'MYCROFT_SYSTEM_CONFIG',
19 '/etc/mycroft/mycroft.conf')
20 USER_CONFIG = join(expanduser(
'~'),
'.mycroft/mycroft.conf')
21 REMOTE_CONFIG =
"mycroft.ai" 22 WEB_CONFIG_CACHE = os.environ.get(
'MYCROFT_WEB_CACHE',
23 '/var/tmp/mycroft_web_cache.json')
27 """ Make sure the directory for the specified path exists. 30 path (str): path to config file 32 directory = dirname(path)
33 if not exists(directory):
34 os.makedirs(directory)
def __ensure_folder_exists(path)