diff options
Diffstat (limited to 'openstack/__init__.py')
-rw-r--r-- | openstack/__init__.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openstack/__init__.py b/openstack/__init__.py index d65c689..7753138 100644 --- a/openstack/__init__.py +++ b/openstack/__init__.py @@ -14,3 +14,11 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + +# This ensures the openstack namespace is defined +try: + import pkg_resources + pkg_resources.declare_namespace(__name__) +except ImportError: + import pkgutil + __path__ = pkgutil.extend_path(__path__, __name__) |