summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hellkamp <marc@gsites.de>2012-09-20 01:01:20 -0700
committerMarcel Hellkamp <marc@gsites.de>2012-09-20 01:01:20 -0700
commitc97c84a47826488a21d2f6fbf8716df914b0fa69 (patch)
tree1c9cb37b617c3fc65371b0ba1054b56cb1c87072
parent829f8278bd190b8f92488466b0f0dfd4969766ed (diff)
parentbbfc49b419bbbeb4d16f5ae3f1ef436b34ef305e (diff)
downloadbottle-c97c84a47826488a21d2f6fbf8716df914b0fa69.tar.gz
Merge pull request #380 from projectgus/master
Fix regression in pull request 378 (issue #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