1
0
mirror of https://github.com/gryf/slack-backup.git synced 2025-12-17 11:30:25 +01:00

Superfast fix for non-existed config parameter in cmdline options

This commit is contained in:
2016-11-28 17:20:14 +01:00
parent 7ccc2bddaa
commit 6d5f3746a2
2 changed files with 6 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ except ImportError:
setup(name="slack-backup",
packages=["slack_backup"],
version="0.4",
version="0.4.1",
description="Make copy of slack converstaions",
author="Roman Dobosz",
author_email="gryf73@gmail.com",

View File

@@ -53,7 +53,11 @@ class Config(object):
def load_config(self, args):
locations = [args.config,
path = ''
if hasattr(args, 'config') and args.config:
path = args.config
locations = [path,
'./slack-backup.conf',
os.path.expandvars('$XDG_CONFIG_HOME/slack-backup.ini'),
os.path.expandvars('$HOME/.config/slack-backup.ini')]