From b7834324b4b87d2dc3c878980295a9dc3290037e Mon Sep 17 00:00:00 2001 From: Davis King Date: Wed, 22 Mar 2023 22:11:20 -0400 Subject: [PATCH] update sphinx config to work with newer versions of python --- docs/docs/python/conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/python/conf.py b/docs/docs/python/conf.py index 97a0cd465..7869d0273 100644 --- a/docs/docs/python/conf.py +++ b/docs/docs/python/conf.py @@ -11,14 +11,14 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys, os +import sys, os, glob # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.abspath('.')) -sys.path.insert(0, os.path.abspath('../../../build/lib.linux-x86_64-2.7')) -sys.path.insert(0, os.path.abspath('../../../build/lib.linux-x86_64-3.8')) +for path in glob.glob('../../../build/lib.linux-*'): + sys.path.insert(0, os.path.abspath(path)) import generate_dlib_listing generate_dlib_listing.make_listing_files()