summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngus Gratton <angus.gratton@anu.edu.au>2012-09-20 15:48:56 +1000
committerAngus Gratton <angus.gratton@anu.edu.au>2012-09-20 15:48:56 +1000
commitbbfc49b419bbbeb4d16f5ae3f1ef436b34ef305e (patch)
tree1c9cb37b617c3fc65371b0ba1054b56cb1c87072
parent829f8278bd190b8f92488466b0f0dfd4969766ed (diff)
downloadbottle-bbfc49b419bbbeb4d16f5ae3f1ef436b34ef305e.tar.gz
Fix bottle.ext namespacing when importing as bottle (regression in fix for #334)
-rw-r--r--bottle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bottle.py b/bottle.py
index 28b8448..f0c1c2a 100644
--- a/bottle.py
+++ b/bottle.py
@@ -3214,7 +3214,7 @@ app.push()
#: A virtual package that redirects import statements.
#: Example: ``import bottle.ext.sqlite`` actually imports `bottle_sqlite`.
-ext = _ImportRedirect('%s.ext' % 'bottle' if __name__ == '__main__' else __name__, 'bottle_%s').module
+ext = _ImportRedirect('bottle.ext' if __name__ == '__main__' else __name__+".ext", 'bottle_%s').module
if __name__ == '__main__':
opt, args, parser = _cmd_options, _cmd_args, _cmd_parser