From 6a6bc577cb1f501f8569a79183606b8d61d681fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Garc=C3=ADa=20Amor?= Date: Mon, 7 Aug 2017 09:04:49 +0200 Subject: [PATCH] WIP rewrite config.py: update cli --- bin/supysonic-cli | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/supysonic-cli b/bin/supysonic-cli index 2aba005..c6d70bc 100755 --- a/bin/supysonic-cli +++ b/bin/supysonic-cli @@ -20,7 +20,7 @@ # along with this program. If not, see . import sys, cmd, argparse, getpass, time -from supysonic import config +from supysonic.config import Config from supysonic.db import get_store, Folder, User from supysonic.managers.folder import FolderManager @@ -225,10 +225,10 @@ class CLI(cmd.Cmd): print "Successfully changed '{}' password".format(name) if __name__ == "__main__": - if not config.check(): + if not Config().check(): sys.exit(1) - cli = CLI(get_store(config.get('base', 'database_uri'))) + cli = CLI(get_store(Config().get('base', 'database_uri'))) if len(sys.argv) > 1: cli.onecmd(' '.join(sys.argv[1:])) else: