1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-10 10:04:21 +01:00

Expand ~ in download path

This commit is contained in:
Rnhmjoj 2015-03-24 23:46:07 +01:00
parent ed0649d659
commit db45e50508

View File

@ -380,7 +380,8 @@ def main():
# default options so we don't die later
config.add_section('SaveToFile')
config.set('SaveToFile', 'enabled', 'false')
config.set('SaveToFile', 'directory', '~/downloads/pirate-get/')
config.set('SaveToFile', 'directory',
os.path.expanduser('~/downloads/pirate-get/'))
config.read([config_to_load()])