mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 22:24:23 +01:00
Avoids global variables in teosd for better testing
This commit is contained in:
@@ -34,7 +34,7 @@ def handle_signals(signal_received, frame):
|
||||
exit(0)
|
||||
|
||||
|
||||
def main():
|
||||
def main(command_line_conf):
|
||||
global db_manager, chain_monitor
|
||||
|
||||
signal(SIGINT, handle_signals)
|
||||
@@ -182,4 +182,4 @@ if __name__ == "__main__":
|
||||
except GetoptError as e:
|
||||
exit(e)
|
||||
|
||||
main()
|
||||
main(command_line_conf)
|
||||
|
||||
Reference in New Issue
Block a user