From aba807b2767b9f04b59f67ec3c56973432bcc690 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 6 Jul 2016 08:51:07 +0200 Subject: Fix defaultConfigFile being defined in the wrong place Signed-off-by: Florian Pritz --- fb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fb.py b/fb.py index 6a36741..40735dd 100755 --- a/fb.py +++ b/fb.py @@ -433,6 +433,8 @@ class FBClient: pass def loadConfig(self): + defaultConfigFile = os.path.join(xdg.BaseDirectory.xdg_config_home, 'fb-client/config') + if self.args.config is None: self.parseConfig(defaultConfigFile, ignoreMissing=True) else: @@ -458,7 +460,6 @@ class FBClient: def run(self): signal.signal(signal.SIGINT, self.handle_ctrl_c) - defaultConfigFile = os.path.join(xdg.BaseDirectory.xdg_config_home, 'fb-client/config') parser = argparse.ArgumentParser( description="Upload/nopaste file(s)/stdin to paste.xinu.at and copy URL(s) to clipboard.") -- cgit v1.2.3-24-g4f1b