aboutsummaryrefslogtreecommitdiffstats
path: root/bin/fg21sim-webui
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-07-23 09:38:27 +0800
committerAaron LI <aly@aaronly.me>2017-07-23 09:38:27 +0800
commite9c6dbe6d3dafff46ae2b065ff11b9f9a5a28741 (patch)
tree00088464985a55975bd931b32110fb42676e79cb /bin/fg21sim-webui
parent4476a0ca0e22d6a35bb07da87956d21ec7c49074 (diff)
downloadfg21sim-e9c6dbe6d3dafff46ae2b065ff11b9f9a5a28741.tar.bz2
Update bin scripts to use global "CONFIGS"
Also update copyright year/email and minor cleanups Signed-off-by: Aaron LI <aly@aaronly.me>
Diffstat (limited to 'bin/fg21sim-webui')
-rwxr-xr-xbin/fg21sim-webui6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/fg21sim-webui b/bin/fg21sim-webui
index 364b8fb..9db0be0 100755
--- a/bin/fg21sim-webui
+++ b/bin/fg21sim-webui
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# -*- mode: python -*-
#
-# Copyright (c) 2016 Weitian LI <liweitianux@live.com>
+# Copyright (c) 2016-2017 Weitian LI <weitian@aaronly.me>
# MIT license
"""
@@ -23,7 +23,7 @@ import webbrowser
import tornado.ioloop
from tornado.options import define, options, parse_command_line
-from fg21sim.configs import configs
+from fg21sim.configs import CONFIGS
from fg21sim.utils import setup_logging
from fg21sim.webui import Application
@@ -48,7 +48,7 @@ def main():
options.host = "0.0.0.0"
loglevel = "DEBUG" if options.debug else None
- setup_logging(dict_config=configs.logging, level=loglevel)
+ setup_logging(dict_config=CONFIGS.logging, level=loglevel)
tool = os.path.basename(sys.argv[0])
logger = logging.getLogger(tool)
logger.info("COMMAND: {0}".format(" ".join(sys.argv)))