summaryrefslogtreecommitdiff
path: root/tests/roots/test-pycode-egg/conf.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-09-06 21:30:56 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-09-06 22:22:01 +0900
commit35e1764025447b8e863a68c65a666836b5099a9d (patch)
treeb4c06dd45760235a0049cb7bf90c1847175576d8 /tests/roots/test-pycode-egg/conf.py
parent4abc55239a5ecd52c249bf0ede0fea44504b1fc8 (diff)
downloadsphinx-git-35e1764025447b8e863a68c65a666836b5099a9d.tar.gz
Fix #5290: autodoc: failed to analyze source code in egg package
Diffstat (limited to 'tests/roots/test-pycode-egg/conf.py')
-rw-r--r--tests/roots/test-pycode-egg/conf.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/roots/test-pycode-egg/conf.py b/tests/roots/test-pycode-egg/conf.py
new file mode 100644
index 000000000..a8e25882b
--- /dev/null
+++ b/tests/roots/test-pycode-egg/conf.py
@@ -0,0 +1,8 @@
+# -*- coding: utf-8 -*-
+
+import os
+import sys
+
+sys.path.insert(0, os.path.abspath('sample-0.0.0-py3.7.egg'))
+master_doc = 'index'
+extensions = ['sphinx.ext.autodoc']