Skip to content

Commit

Permalink
Namespace Fixes (#105)
Browse files Browse the repository at this point in the history
This changes the logic for namespaces to hopefully be more portable
to other Python environments.

Signed-off-by: David Brown <dmlb2000@gmail.com>
  • Loading branch information
dmlb2000 committed Feb 14, 2020
1 parent c8ff870 commit 69976fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pacifica/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""Pacifica Namespace."""
__import__('pkg_resources').declare_namespace(__name__)
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
__path__ = __import__('pkgutil').extend_path(__path__, __name__)

0 comments on commit 69976fb

Please sign in to comment.