kopia lustrzana https://github.com/botheredbybees/kilnController
Merge pull request #15 from openelectron/detect_path
Changed from hard coded relative path to detect the correct onepull/1/head
commit
46facc399b
|
@ -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():
|
||||
|
|
Ładowanie…
Reference in New Issue