summaryrefslogtreecommitdiff
path: root/stsci/__init__.py
diff options
context:
space:
mode:
authorsienkiew <sienkiew@stsci.edu>2014-03-25 10:53:08 -0400
committersienkiew <sienkiew@stsci.edu>2014-03-25 10:53:08 -0400
commit5d00dcb1a0123389d9759698a5c42828e17af9bc (patch)
treeecef07881ea7b6b661ee5f59847b00dafecf3409 /stsci/__init__.py
parent64be292044c4428b5908acf5cc2dda6693ed1afb (diff)
downloadstsci.sphere-5d00dcb1a0123389d9759698a5c42828e17af9bc.tar.gz
mod for d2to1 install
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@30670 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 91667828b7e01b5aae55679093564473a976e8a9
Diffstat (limited to 'stsci/__init__.py')
-rw-r--r--stsci/__init__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/stsci/__init__.py b/stsci/__init__.py
new file mode 100644
index 0000000..a5133cc
--- /dev/null
+++ b/stsci/__init__.py
@@ -0,0 +1,8 @@
+# This is a special __init__.py required to place sample_package under the
+# stsci namespace package. There should be no other code in this module.
+try:
+ from pkg_resources import declare_namespace
+ declare_namespace(__name__)
+except ImportError:
+ from pkgutil import extend_path
+ __path__ = extend_path(__path__, __name__)