Set default download location
This commit is contained in:
parent
46594aa21b
commit
b82e4045d1
|
@ -19,7 +19,7 @@ def initSettings(bot_mode = False):
|
||||||
makedirs(configFolder, exist_ok=True)
|
makedirs(configFolder, exist_ok=True)
|
||||||
with open(path.join(currentFolder, 'default.json'), 'r') as d:
|
with open(path.join(currentFolder, 'default.json'), 'r') as d:
|
||||||
defaultSettings = json.load(d)
|
defaultSettings = json.load(d)
|
||||||
defaultSettings['downloadLocation'] = ""
|
defaultSettings['downloadLocation'] = path.join(localpaths.getHomeFolder(), 'deemix Music')
|
||||||
if not path.isfile(path.join(configFolder, 'config.json')):
|
if not path.isfile(path.join(configFolder, 'config.json')):
|
||||||
with open(path.join(configFolder, 'config.json'), 'w') as f:
|
with open(path.join(configFolder, 'config.json'), 'w') as f:
|
||||||
json.dump(defaultSettings, f, indent=2)
|
json.dump(defaultSettings, f, indent=2)
|
||||||
|
|
Loading…
Reference in New Issue