GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — DOC: avoid searching some directories for doxygen-commented source co… · IndifferentArea/numpy@b2d2aba

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc
    • preprocess.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/preprocess.py‎

Copy file name to clipboardExpand all lines: doc/preprocess.py
+10-8Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
def main():
7-
doxy_gen(os.path.abspath(os.path.join('..')))
7+
doxy_gen(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
88

99
def doxy_gen(root_path):
1010
"""
@@ -24,6 +24,7 @@ def doxy_gen(root_path):
2424
class DoxyTpl(Template):
2525
delimiter = '@'
2626

27+
2728
def doxy_config(root_path):
2829
"""
2930
Fetch all Doxygen sub-config files and gather it with the main config file.
@@ -35,13 +36,14 @@ def doxy_config(root_path):
3536
conf = DoxyTpl(fd.read())
3637
confs.append(conf.substitute(CUR_DIR=dsrc_path, **sub))
3738

38-
for dpath, _, files in os.walk(root_path):
39-
if ".doxyfile" not in files:
40-
continue
41-
conf_path = os.path.join(dpath, ".doxyfile")
42-
with open(conf_path) as fd:
43-
conf = DoxyTpl(fd.read())
44-
confs.append(conf.substitute(CUR_DIR=dpath, **sub))
39+
for subdir in ["doc", "numpy"]:
40+
for dpath, _, files in os.walk(os.path.join(root_path, subdir)):
41+
if ".doxyfile" not in files:
42+
continue
43+
conf_path = os.path.join(dpath, ".doxyfile")
44+
with open(conf_path) as fd:
45+
conf = DoxyTpl(fd.read())
46+
confs.append(conf.substitute(CUR_DIR=dpath, **sub))
4547
return confs
4648

4749

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.