瀏覽代碼

Sphinx conf.py: Always add _ext from the path of conf.py

Ask Solem 14 年之前
父節點
當前提交
f528c983db
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      docs/conf.py

+ 3 - 1
docs/conf.py

@@ -3,11 +3,13 @@
 import sys
 import os
 
+this = os.path.dirname(os.path.abspath(__file__))
+
 # If your extensions are in another directory, add it here. If the directory
 # is relative to the documentation root, use os.path.abspath to make it
 # absolute, like shown here.
 sys.path.append(os.path.join(os.pardir, "tests"))
-sys.path.append("_ext")
+sys.path.append(os.path.join(this, "_ext"))
 import celery
 
 # General configuration