Declare namespace in ckanext/googleanalytics/__init__.py

This commit is contained in:
Justas Azna 2014-07-09 18:24:05 +02:00
parent 78cd2a95a6
commit 51c212c57c
1 changed files with 7 additions and 1 deletions

View File

@ -1 +1,7 @@
#
# this is a namespace package
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)