Browse Source

Make ob-watcher independent of current working directory

master
Kristaps Kaupe 6 years ago
parent
commit
80333b2872
No known key found for this signature in database
GPG Key ID: D47B1B4232B55437
  1. 3
      scripts/obwatch/ob-watcher.py

3
scripts/obwatch/ob-watcher.py

@ -271,7 +271,8 @@ class OrderbookPageRequestHeader(http.server.SimpleHTTPRequestHandler):
pages = ['/', '/ordersize', '/depth', '/orderbook.json']
if self.path not in pages:
return
fd = open('orderbook.html', 'r')
fd = open(os.path.join(os.path.dirname(os.path.realpath(__file__)),
'orderbook.html'), 'r')
orderbook_fmt = fd.read()
fd.close()
alert_msg = ''

Loading…
Cancel
Save