diff options
author | Baiju Muthukadan <baiju.m.mail@gmail.com> | 2009-03-11 16:32:13 +0000 |
---|---|---|
committer | Baiju Muthukadan <baiju.m.mail@gmail.com> | 2009-03-11 16:32:13 +0000 |
commit | fb7265e42442a822c2825f7118d6ff2eaf6c1d6b (patch) | |
tree | 40b38ba43e752168b5160769f2da8a830fd2c5a3 | |
parent | 983e028f398e0506dd4af7989165bd1a2ac32ac6 (diff) | |
download | zope-tal-fb7265e42442a822c2825f7118d6ff2eaf6c1d6b.tar.gz |
As 'setuptools' is a dependency 'pkg_resources' will be available always. Ref: http://mail.zope.org/pipermail/zope-dev/2009-March/035277.html
-rw-r--r-- | src/zope/__init__.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/zope/__init__.py b/src/zope/__init__.py index bf99a9d..de40ea7 100644 --- a/src/zope/__init__.py +++ b/src/zope/__init__.py @@ -1,8 +1 @@ -# this is a namespace package -try: - import pkg_resources - pkg_resources.declare_namespace(__name__) -except ImportError: - import pkgutil - __path__ = pkgutil.extend_path(__path__, __name__) - +__import__('pkg_resources').declare_namespace(__name__) |