Skip to content

Commit

Permalink
make static handler work
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmengel committed Oct 30, 2024
1 parent 7491772 commit aebeb5f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions declad/web_server.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
from webpie import WPApp, WPHandler, WPStaticHandler
from version import Version
import pprint, json, time
import pprint, json, time, os

prefix=os.path.dirname(__file__)

class Handler(WPHandler):

def __init__(self, request, app):
WPHandler.__init__(self, request, app)
self.static = WPStaticHandler(request, app)
self.static = WPStaticHandler(request, app, root=prefix +"/static")

def current(self, request, relpath, **args):
transfers = self.App.current_transfers()
Expand Down

0 comments on commit aebeb5f

Please sign in to comment.