feat: include dotfiles (.) in create_highlighted_versions.py search

This commit is contained in:
Zachary J. Rollyson 2020-10-17 11:20:24 -04:00 committed by David Peter
parent c71c8980cf
commit a3f037773a
1 changed files with 2 additions and 1 deletions

View File

@ -39,8 +39,9 @@ def get_options(source):
def create_highlighted_versions(output_basepath):
root = os.path.dirname(os.path.abspath(__file__))
sources = path.join(root, "source", "*")
for source in glob.glob(path.join(root, "source", "*", "*")):
for source in glob.glob(path.join(sources, "*")) + glob.glob(path.join(sources, ".*")):
try:
env = os.environ.copy()
env.pop("PAGER", None)