diff options
Diffstat (limited to 'paste')
-rw-r--r-- | paste/deploy/loadwsgi.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/paste/deploy/loadwsgi.py b/paste/deploy/loadwsgi.py index f30c03e..a34737f 100644 --- a/paste/deploy/loadwsgi.py +++ b/paste/deploy/loadwsgi.py @@ -305,6 +305,8 @@ class ConfigLoader(_Loader): self.parser.read(filename) self.parser._defaults.setdefault( 'here', os.path.dirname(os.path.abspath(filename))) + self.parser._defaults.setdefault( + '__file__', os.path.abspath(filename)) def get_context(self, object_type, name=None, global_conf=None): if self.absolute_name(name): |