# HG changeset patch # User Jeff Hammel # Date 1350430462 25200 # Node ID ebb65758d725d5866be1c14586bf4749b561c14d # Parent 65d0a115386456101d6f02ec66cebe79170d783f add a default directory diff -r 65d0a1153864 -r ebb65758d725 dogdish/dispatcher.py --- a/dogdish/dispatcher.py Tue Oct 16 15:42:14 2012 -0700 +++ b/dogdish/dispatcher.py Tue Oct 16 16:34:22 2012 -0700 @@ -5,11 +5,14 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=800118 """ +import os import sys from urlparse import urlparse from webob import Request from webob import Response, exc +here = os.path.dirname(os.path.abspath(__file__)) + class Handler(object): def __init__(self, request): @@ -62,7 +65,7 @@ class Dispatcher(object): ### class level variables - defaults = {} + defaults = {'directory': here} def __init__(self, **kw): for key in self.defaults: