mirror of https://github.com/davisking/dlib.git
update sphinx config to work with newer versions of python
This commit is contained in:
parent
15b2851318
commit
b7834324b4
|
@ -11,14 +11,14 @@
|
||||||
# All configuration values have a default; values that are commented out
|
# All configuration values have a default; values that are commented out
|
||||||
# serve to show the default.
|
# serve to show the default.
|
||||||
|
|
||||||
import sys, os
|
import sys, os, glob
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# 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
|
# 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.
|
# 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('.'))
|
||||||
sys.path.insert(0, os.path.abspath('../../../build/lib.linux-x86_64-2.7'))
|
for path in glob.glob('../../../build/lib.linux-*'):
|
||||||
sys.path.insert(0, os.path.abspath('../../../build/lib.linux-x86_64-3.8'))
|
sys.path.insert(0, os.path.abspath(path))
|
||||||
|
|
||||||
import generate_dlib_listing
|
import generate_dlib_listing
|
||||||
generate_dlib_listing.make_listing_files()
|
generate_dlib_listing.make_listing_files()
|
||||||
|
|
Loading…
Reference in New Issue