Set default download location

This commit is contained in:
replydev 2020-05-20 16:38:11 +02:00
parent 46594aa21b
commit b82e4045d1
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ def initSettings(bot_mode = False):
makedirs(configFolder, exist_ok=True)
with open(path.join(currentFolder, 'default.json'), 'r') as d:
defaultSettings = json.load(d)
defaultSettings['downloadLocation'] = ""
defaultSettings['downloadLocation'] = path.join(localpaths.getHomeFolder(), 'deemix Music')
if not path.isfile(path.join(configFolder, 'config.json')):
with open(path.join(configFolder, 'config.json'), 'w') as f:
json.dump(defaultSettings, f, indent=2)