
__import__('pkg_resources').declare_namespace(__name__)

try:
    __import__('pkg_resources').declare_namespace(__name__)
except ImportError:
    __path__ = __import__('pkgutil').extend_path(__path__, __name__)

Make the openquake namespace compatible with old setuptools
Make the openquake namespace compatible with old setuptools


Former-commit-id: e5f4dc01e94694bf9bfcae3ecd6eca34a33a24eb
+ try:
+     __import__('pkg_resources').declare_namespace(__name__)
+ except ImportError:
+     __path__ = __import__('pkgutil').extend_path(__path__, __name__)
  
- __import__('pkg_resources').declare_namespace(__name__)
- 
Make the openquake namespace compatible with old setuptools
## Code Before:

__import__('pkg_resources').declare_namespace(__name__)

## Instruction:
Make the openquake namespace compatible with old setuptools
## Code After:
try:
    __import__('pkg_resources').declare_namespace(__name__)
except ImportError:
    __path__ = __import__('pkgutil').extend_path(__path__, __name__)
