From db45e505087636d3945deddcd9365f62f894192d Mon Sep 17 00:00:00 2001 From: Rnhmjoj Date: Tue, 24 Mar 2015 23:46:07 +0100 Subject: [PATCH] Expand ~ in download path --- pirate-get.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pirate-get.py b/pirate-get.py index cf85734..255df3f 100755 --- a/pirate-get.py +++ b/pirate-get.py @@ -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()])