From 3a161b026c8ddce0c15b5a1f8e70bd029567bf73 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Sat, 18 Jan 2020 17:20:16 -0800 Subject: [PATCH] Fix imports --- amanuensis/cli/lexicon.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/amanuensis/cli/lexicon.py b/amanuensis/cli/lexicon.py index bbab1f8..0c056c1 100644 --- a/amanuensis/cli/lexicon.py +++ b/amanuensis/cli/lexicon.py @@ -17,18 +17,18 @@ def command_create(args): settings are as desired before opening the lexicon for player joins. """ # Module imports - import config + from config import logger from lexicon.manage import valid_name, create_lexicon from user import UserModel # Verify arguments if not valid_name(args.lexicon): - config.logger.error("Lexicon name contains illegal characters: '{}'".format( + logger.error("Lexicon name contains illegal characters: '{}'".format( args.lexicon)) return -1 editor = UserModel.by(name=args.editor) if editor is None: - config.logger.error("Could not find user '{}'".format(args.editor)) + logger.error("Could not find user '{}'".format(args.editor)) return -1 # Internal call @@ -91,7 +91,7 @@ def command_config(args): Interact with a lexicon's config """ # Module imports - from config import logger + from config import logger, json_ro, json_rw from lexicon import LexiconModel # Verify arguments @@ -105,11 +105,11 @@ def command_config(args): # Internal call if args.get: - with config.json_ro(lex.config_path) as cfg: + with json_ro(lex.config_path) as cfg: config_get(cfg, args.get) if args.set: - with config.json_rw(lex.config_path) as cfg: + with json_rw(lex.config_path) as cfg: config_set(cfg, args.set) #