# -*- encoding: utf-8 -*-
""" Python SoundCloud Downloader"""

import os

__version__ = 'v1.7.13'
CLIENT_ID = 'a3e059563d7fd3372b49b37f00a00bcf'
ALT_CLIENT_ID = '2t9loNQH90kzJcsFCODdigxfp325aq4z'
ALT2_CLIENT_ID = 'NONE'

dir_path_to_config = os.path.join(os.path.expanduser('~'), '.config/pyscdl')
if 'XDG_CONFIG_HOME' in os.environ:
    dir_path_to_config = os.environ['XDG_CONFIG_HOME']

file_path_to_conf = os.path.join(dir_path_to_config, 'pyscdl.cfg')
text = """[scdl]
auth_token =
path = .
"""

if not os.path.exists(dir_path_to_config):
    os.makedirs(dir_path_to_config)

if not os.path.exists(file_path_to_conf):
    with open(file_path_to_conf, 'w') as f:
        f.write(text)