diff --git a/web/chttpd.py b/web/chttpd.py index d800ca8..b933ef8 100755 --- a/web/chttpd.py +++ b/web/chttpd.py @@ -19,11 +19,12 @@ PATH = os.path.abspath(os.path.dirname(__file__)) # Where are we? _SCRIPT_PATH = os.path.dirname(sys.argv[0]) -# So we can load static libraries -sys.path.append(_SCRIPT_PATH) -# Certificates reside here +# Certificates fro SSL reside here _CERT_PATH = _SCRIPT_PATH + '/.cert' +# So we can load static libraries +# sys.path.append(_SCRIPT_PATH) + # basic config for the server, the SSL part is questionable... server_config = { 'server.socket_host': '0.0.0.0', @@ -44,11 +45,11 @@ if __name__ == '__main__': }, '/static': { 'tools.staticdir.on': True, - 'tools.staticdir.dir': './static' + 'tools.staticdir.dir': os.path.abspath(_SCRIPT_PATH + '/static') }, '/data': { 'tools.staticdir.on': False, - 'tools.staticdir.dir': './dynamic' + 'tools.staticdir.dir': os.path.abspath(_SCRIPT_PATH + '/dynamic') } }