summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-07-06 08:51:07 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-07-06 08:51:07 +0200
commitaba807b2767b9f04b59f67ec3c56973432bcc690 (patch)
treee08fb6cefc36552759e9132a9240ed8324bd12c8
parentdce32791ff5c74cb81ee5d3401b3fe1734efa8d4 (diff)
Fix defaultConfigFile being defined in the wrong placev2.0.1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xfb.py3
1 files changed, 2 insertions, 1 deletions
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.")