diff options
author | Marcel Hellkamp <marc@gsites.de> | 2012-09-20 01:01:20 -0700 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2012-09-20 01:01:20 -0700 |
commit | c97c84a47826488a21d2f6fbf8716df914b0fa69 (patch) | |
tree | 1c9cb37b617c3fc65371b0ba1054b56cb1c87072 | |
parent | 829f8278bd190b8f92488466b0f0dfd4969766ed (diff) | |
parent | bbfc49b419bbbeb4d16f5ae3f1ef436b34ef305e (diff) | |
download | bottle-c97c84a47826488a21d2f6fbf8716df914b0fa69.tar.gz |
Merge pull request #380 from projectgus/master
Fix regression in pull request 378 (issue #334)
-rw-r--r-- | bottle.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |