Commit ef1812a0 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Correct web2py path running sphinx within a docker image.

parent c34e2aac
......@@ -32,7 +32,14 @@ def get_version():
# 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('../../modules'))
sys.path.insert(0, os.path.abspath('../../../web2py'))
# docker image
if os.path.exists("/opt/web2py"):
sys.path.insert(0, os.path.abspath('/opt/web2py'))
# older running environment
sys.path.insert(0, os.path.abspath('../../../web2py'))
# -- General configuration -----------------------------------------------------
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment