From 13012dc779ac96d795163d27e31f4ca12f374353 Mon Sep 17 00:00:00 2001 From: Autumn Naber Date: Tue, 22 Feb 2022 12:04:12 -0800 Subject: [PATCH] Minor bugfixes for temporary testing Added .gitignore --- .gitignore | 1 + CMDRConsole/__init__.py | 2 +- CMDRConsole/config_parser.py | 8 ++++++-- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c18dd8d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__pycache__/ diff --git a/CMDRConsole/__init__.py b/CMDRConsole/__init__.py index 1ac07a1..ed93af7 100644 --- a/CMDRConsole/__init__.py +++ b/CMDRConsole/__init__.py @@ -13,7 +13,7 @@ def create_app(test_config=None): global page global keys - cmds = config_parser.get_cmds() + cmds = {} #config_parser.get_cmds() pages = config_parser.get_pages() keys = config_parser.get_keys() page = 'General' diff --git a/CMDRConsole/config_parser.py b/CMDRConsole/config_parser.py index fb145ef..1859361 100644 --- a/CMDRConsole/config_parser.py +++ b/CMDRConsole/config_parser.py @@ -26,16 +26,20 @@ def get_general_labels(): 'Toggle Lights':'ShipSpotLightToggle'} def get_mining_labels(): + pass def get_exploration_labels(): + pass def get_srv_labels(): + pass def get_assault_labels(): + pass def get_cmds(): cmds = {} - tree = xml.ElementTree(file=XXX) + tree = None #xml.ElementTree(file=XXX) root = tree.getroot() children = list(root) @@ -43,7 +47,7 @@ def get_cmds(): for child in children: name = child.tag - if not child.findall('Primary') + if not child.findall('Primary'): continue keys = child.getchildren() if keys[0].attrib['Device'] == 'Keyboard':