diff options
| author | ianb <devnull@localhost> | 2006-09-04 19:35:38 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2006-09-04 19:35:38 +0000 |
| commit | 54f6af6bfb71e393cc3a74f812338149f9ad2fdd (patch) | |
| tree | 7c0148520e1fbdbc6642e2f6659c56dffa1a726b /paste/__init__.py | |
| parent | 949016497f710e5cbccf7388a90896d1452906c7 (diff) | |
| download | paste-54f6af6bfb71e393cc3a74f812338149f9ad2fdd.tar.gz | |
Auto-update of version strings
Diffstat (limited to 'paste/__init__.py')
| -rw-r--r-- | paste/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/paste/__init__.py b/paste/__init__.py index 69391f2..fbf3130 100644 --- a/paste/__init__.py +++ b/paste/__init__.py @@ -2,7 +2,8 @@ # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php try: import pkg_resources - pkg_resources.declare_namespace('paste') + pkg_resources.declare_namespace(__name__) except ImportError: # don't prevent use of paste if pkg_resources isn't installed - pass + from pkgutil import extend_path + __path__ = extend_path(__path__, __name__) |
