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

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)