Commit db5c8d64 authored by Furkan Mustafa's avatar Furkan Mustafa

ability to run daemon and cli as python modules

parent b2f0a318
......@@ -4,3 +4,7 @@ pip-log.txt
pip-delete-this-directory.txt
.cache
run
*.log
*.db
uuid.conf
env
from .cli import Cli, main
Cli()
main()
from . import main
main.main()
......@@ -52,8 +52,8 @@ def main():
server.add_socket(socket)
# Also Listen on TCP
APP.listen(options.listen_port, address=options.listen_address)
logger.info("Listening on tcp socket: %s:%s", options.listen_address, options.listen_port)
APP.listen(options.listen_port, address=options.listen_address)
# collect node info and create node object
node_info = collect_node_info()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment