Merge pull request #15 from openelectron/detect_path

Changed from hard coded relative path to detect the correct one
pull/1/head
chrono 2016-04-07 14:11:32 +00:00
commit 46facc399b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -44,7 +44,7 @@ def index():
@app.route('/picoreflow/:filename#.*#')
def send_static(filename):
log.debug("serving %s" % filename)
return bottle.static_file(filename, root='./public/')
return bottle.static_file(filename, root=os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), "public"))
def get_websocket_from_request():