summaryrefslogtreecommitdiffstatshomepage
path: root/docs/source/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source/conf.py')
-rw-r--r--docs/source/conf.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py
index cad683ebecc..1a9730e288f 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -11,9 +11,10 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
-import sys, os
+import os.path
+import sys
-sys.path.insert(0, os.path.abspath('_ext'))
+sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '_ext'))
# 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
@@ -31,8 +32,8 @@ extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
- 'edit_on_github',
- 'sphinxcontrib.rsvgconverter'
+ 'sphinxcontrib.rsvgconverter',
+ 'edit_on_github'
]
edit_on_github_project = 'mamedev/mame'