diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-07-06 08:51:07 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-07-06 08:51:07 +0200 |
commit | aba807b2767b9f04b59f67ec3c56973432bcc690 (patch) | |
tree | e08fb6cefc36552759e9132a9240ed8324bd12c8 /fb.py | |
parent | dce32791ff5c74cb81ee5d3401b3fe1734efa8d4 (diff) |
Fix defaultConfigFile being defined in the wrong placev2.0.1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'fb.py')
-rwxr-xr-x | fb.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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.") |