Commit bd565129 authored by Stavros Sachtouris's avatar Stavros Sachtouris Committed by Giorgos Korfiatis
Browse files

Update launch script to test-run CLI

parent 8702d692
......@@ -21,13 +21,19 @@ from agkyra import config
AGKYRA_DIR = config.AGKYRA_DIR
import logging
logfile = os.path.join(AGKYRA_DIR, 'agkyra.log')
logger = logging.getLogger('agkyra')
handler = logging.FileHandler(logfile)
formatter = logging.Formatter("%(levelname)s:%(asctime)s:%(message)s")
handler.setFormatter(formatter)
logger.addHandler(handler)
logger.setLevel(logging.INFO)
LOGFILE = os.path.join(AGKYRA_DIR, 'agkyra.log')
LOGGER = logging.getLogger('agkyra')
HANDLER = logging.FileHandler(LOGFILE)
FORMATTER = logging.Formatter("%(levelname)s:%(asctime)s:%(message)s")
HANDLER.setFormatter(FORMATTER)
LOGGER.addHandler(HANDLER)
LOGGER.setLevel(logging.INFO)
from agkyra import gui
gui.run()
# # run GUI
# from agkyra import gui
# gui.run()
# run cli
from agkyra.cli import AgkyraCLI
from sys import argv
AgkyraCLI().onecmd(' '.join(argv[1:] or ['help', ]))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment