summaryrefslogtreecommitdiff
path: root/tools/refguide_check.py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2019-11-18 06:05:41 -0700
committermattip <matti.picus@gmail.com>2019-11-18 06:05:41 -0700
commite05782302cd9b107e4977271dc43ca42fe5a1e5a (patch)
treec00f2a057880aba5097274beb548b0b9eb036b90 /tools/refguide_check.py
parent3b8cf7cd671d4ac76ec2da18727a0ead807f0f4e (diff)
downloadnumpy-e05782302cd9b107e4977271dc43ca42fe5a1e5a.tar.gz
MAINT: fixes from review
Diffstat (limited to 'tools/refguide_check.py')
-rw-r--r--tools/refguide_check.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/refguide_check.py b/tools/refguide_check.py
index a93d483b3..1428e622e 100644
--- a/tools/refguide_check.py
+++ b/tools/refguide_check.py
@@ -21,7 +21,7 @@ in docstrings::
$ python refguide_check.py --doctests ma
-or in RST-based documentations (including any python files in the directories)::
+or in RST-based documentations::
$ python refguide_check.py --rst docs
"""
@@ -1009,7 +1009,7 @@ def main(argv):
base_dir = os.path.join(os.path.abspath(os.path.dirname(__file__)), '..')
rst_path = os.path.relpath(os.path.join(base_dir, args.rst))
if os.path.exists(rst_path):
- print('\nChecking files in %s:' % os.path.relpath(rst_path, os.getcwd()))
+ print('\nChecking files in %s:' % rst_path)
check_documentation(rst_path, results, args, dots)
else:
sys.stderr.write(f'\ninvalid --rst argument "{args.rst}"')