Skip to content
Snippets Groups Projects
Commit 6e47ff29 authored by jkerdreu's avatar jkerdreu
Browse files

Fix root path


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/fork@1665 b32b6428-25c9-4566-ad07-03861ab6144f
parent ab3fa1e6
Branches
No related tags found
No related merge requests found
......@@ -4,10 +4,11 @@ from gevent import monkey; monkey.patch_all()
from xaal.lib import tools,Engine,Device
from xaal.monitor import Monitor
import platform
from bottle import default_app,debug,get,response,redirect,static_file
import json
import os
import platform
from gevent import Greenlet
from gevent.pywsgi import WSGIServer
......@@ -58,7 +59,9 @@ def xaal_loop(engine):
@get('/static/<filename:path>')
def send_static(filename):
return static_file(filename, root='./static/')
root = os.path.dirname(__file__)
root = os.path.join(root,'static')
return static_file(filename, root=root)
@get('/')
def goto_list():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment