Shorten namespace package boilerplate

svn path=/plone.formwidget.captcha/trunk/; revision=33495
This commit is contained in:
Hanno Schlichting 2010-01-27 15:06:04 +00:00
parent 23e4397e51
commit e64cb1e6f5
2 changed files with 2 additions and 12 deletions

View File

@ -1,6 +1 @@
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
__import__('pkg_resources').declare_namespace(__name__)

View File

@ -1,6 +1 @@
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
__import__('pkg_resources').declare_namespace(__name__)