From e8bd35d65801858488cb53702431e2bbe9b8c621 Mon Sep 17 00:00:00 2001 From: Rnhmjoj Date: Wed, 3 Dec 2014 19:43:12 +0100 Subject: [PATCH] Change config file location --- pirate-get.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pirate-get.py b/pirate-get.py index 4251987..2b27294 100755 --- a/pirate-get.py +++ b/pirate-get.py @@ -82,15 +82,15 @@ def main(): # default options so we dont die later config.add_section('SaveToFile') - config.set('SaveToFile', 'enabled', False) - config.set('SaveToFile', 'directory', '~/Dropbox/pirate-get/') + config.set('SaveToFile', 'enabled', 'false') + config.set('SaveToFile', 'directory', '~/downloads/pirate-get/') # load user options, to override default ones def config_to_load(): - if os.path.isfile(os.path.expandvars('$XDG_CONFIG_HOME/pirate-get/pirate.cfg')): - return os.path.expandvars('$XDG_CONFIG_HOME/pirate-get/pirate.cfg') + if os.path.isfile(os.path.expandvars('$XDG_CONFIG_HOME/pirate-get')): + return os.path.expandvars('$XDG_CONFIG_HOME/pirate-get') else: - return os.path.expanduser('~/.config/pirate-get/pirate.cfg') + return os.path.expanduser('~/.config/pirate-get') config.read([config_to_load()])