From 5f8219617da6c35b0f6c360b0ce94960952a77a1 Mon Sep 17 00:00:00 2001 From: undeath Date: Wed, 10 Feb 2021 21:33:33 +0100 Subject: [PATCH] fix ob-watcher.py serving from relative location --- scripts/obwatch/ob-watcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/obwatch/ob-watcher.py b/scripts/obwatch/ob-watcher.py index 9a8175c..cba0df9 100755 --- a/scripts/obwatch/ob-watcher.py +++ b/scripts/obwatch/ob-watcher.py @@ -130,7 +130,8 @@ class OrderbookPageRequestHeader(http.server.SimpleHTTPRequestHandler): self.taker = base_server.taker self.base_server = base_server http.server.SimpleHTTPRequestHandler.__init__( - self, request, client_address, base_server) + self, request, client_address, base_server, + directory=os.path.dirname(os.path.realpath(__file__))) def create_orderbook_obj(self): try: