mirror of
https://github.com/gryf/slack-backup.git
synced 2026-10-08 18:52:31 +02:00
Superfast fix for non-existed config parameter in cmdline options
This commit is contained in:
1 parent
7ccc2bddaa
commit
6d5f3746a2
2 files changed
+6
-2
No files matched your search
@@ -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')]
|
||||
|
||||
Reference in new issue
Block a user