attempt to fix web-static not being found
authorForrest Voight <forrest@forre.st>
Fri, 24 Jan 2014 19:30:13 +0000 (14:30 -0500)
committerForrest Voight <forrest@forre.st>
Fri, 24 Jan 2014 19:30:13 +0000 (14:30 -0500)
p2pool/web.py

index 4400e7d..034baa5 100644 (file)
@@ -443,6 +443,6 @@ def get_web_root(wb, datadir_path, bitcoind_getinfo_var, stop_event=variable.Eve
         hd.datastreams['getwork_latency'].add_datum(time.time(), new_work['latency'])
     new_root.putChild('graph_data', WebInterface(lambda source, view: hd.datastreams[source].dataviews[view].get_data(time.time())))
     
-    web_root.putChild('static', static.File(os.path.join(os.path.dirname(sys.argv[0]), 'web-static')))
+    web_root.putChild('static', static.File(os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), 'web-static')))
     
     return web_root