mirror of
https://github.com/aljazceru/python-teos.git
synced 2026-02-23 15:34:18 +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)
|
exit(0)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main(command_line_conf):
|
||||||
global db_manager, chain_monitor
|
global db_manager, chain_monitor
|
||||||
|
|
||||||
signal(SIGINT, handle_signals)
|
signal(SIGINT, handle_signals)
|
||||||
@@ -182,4 +182,4 @@ if __name__ == "__main__":
|
|||||||
except GetoptError as e:
|
except GetoptError as e:
|
||||||
exit(e)
|
exit(e)
|
||||||
|
|
||||||
main()
|
main(command_line_conf)
|
||||||
|
|||||||
Reference in New Issue
Block a user