From b123410d435db1ad10b277950b0e90eb19992c9a Mon Sep 17 00:00:00 2001 From: Richard Bronkhorst Date: Wed, 7 Jun 2023 21:48:36 +0200 Subject: [PATCH] Update commander.py --- commander.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/commander.py b/commander.py index af7658e..7905e94 100644 --- a/commander.py +++ b/commander.py @@ -1,6 +1,23 @@ #!/usr/bin/env python3 import logging import argparse +from store import Store +import importlib +import sys + +class Commander(CommandLine): + pass + + +store_file = 'data/store.db' +s = Store(store_file) if __name__ == '__main__': - print('hi!') \ No newline at end of file + while True: + importlib.reload(command_line) + from command_line import CommandLine + c = Commander() + c.run() + if c.reloading == False: + break +