1
0

Integrate http_server (previously in electrum-merchant)

Use submodule to fetch HTML and CSS files
This commit is contained in:
ThomasV
2019-09-03 14:44:33 +02:00
parent bd57880799
commit 747ab7a0a2
10 changed files with 124 additions and 238 deletions

View File

@@ -375,15 +375,6 @@ if __name__ == '__main__':
# run daemon
init_plugins(config, 'cmdline')
d = daemon.Daemon(config, fd)
if config.get('websocket_server'):
from electrum import websockets
websockets.WebSocketServer(config, d.network)
if config.get('requests_dir'):
path = os.path.join(config.get('requests_dir'), 'index.html')
if not os.path.exists(path):
print("Requests directory not configured.")
print("You can configure it using https://github.com/spesmilo/electrum-merchant")
sys_exit(1)
d.run_daemon()
sys_exit(0)
else: