Update commander.py

This commit is contained in:
Richard Bronkhorst 2023-06-07 21:48:36 +02:00
parent 20e63d2d0f
commit b123410d43

View File

@ -1,6 +1,23 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import logging import logging
import argparse 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__': if __name__ == '__main__':
print('hi!') while True:
importlib.reload(command_line)
from command_line import CommandLine
c = Commander()
c.run()
if c.reloading == False:
break