annotate DEPENDENCIES/mingw32/Python27/Lib/site-packages/numpy/doc/__init__.py @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2a2c65a20a8b
children
rev   line source
Chris@87 1 from __future__ import division, absolute_import, print_function
Chris@87 2
Chris@87 3 import os
Chris@87 4
Chris@87 5 ref_dir = os.path.join(os.path.dirname(__file__))
Chris@87 6
Chris@87 7 __all__ = sorted(f[:-3] for f in os.listdir(ref_dir) if f.endswith('.py') and
Chris@87 8 not f.startswith('__'))
Chris@87 9
Chris@87 10 for f in __all__:
Chris@87 11 __import__(__name__ + '.' + f)
Chris@87 12
Chris@87 13 del f, ref_dir
Chris@87 14
Chris@87 15 __doc__ = """\
Chris@87 16 Topical documentation
Chris@87 17 =====================
Chris@87 18
Chris@87 19 The following topics are available:
Chris@87 20 %s
Chris@87 21
Chris@87 22 You can view them by
Chris@87 23
Chris@87 24 >>> help(np.doc.TOPIC) #doctest: +SKIP
Chris@87 25
Chris@87 26 """ % '\n- '.join([''] + __all__)
Chris@87 27
Chris@87 28 __all__.extend(['__doc__'])