summaryrefslogtreecommitdiff
path: root/numpy/doc/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/doc/__init__.py')
-rw-r--r--numpy/doc/__init__.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/numpy/doc/__init__.py b/numpy/doc/__init__.py
index 394f0b548..8664ea04d 100644
--- a/numpy/doc/__init__.py
+++ b/numpy/doc/__init__.py
@@ -1,2 +1,12 @@
-from numpy.doc.reference import *
-del reference
+import os
+
+ref_dir = os.path.join(os.path.dirname(__file__))
+
+__all__ = [f[:-3] for f in os.listdir(ref_dir) if f.endswith('.py') and
+ not f.startswith('__')]
+__all__.sort()
+
+__doc__ = 'The following topics are available:\n' + \
+ '\n - '.join([''] + __all__)
+
+__all__.extend(['__doc__'])