Browse Source

try if readthedocs finds the borg package this way

Thomas Waldmann 9 năm trước cách đây
mục cha
commit
dcdcbda87d
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      docs/conf.py

+ 4 - 4
docs/conf.py

@@ -11,13 +11,13 @@
 # All configuration values have a default; values that are commented out
 # serve to show the default.
 
-from borg import __version__ as sw_version
-
 # 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
 # documentation root, use os.path.abspath to make it absolute, like shown here.
-#import sys, os
-#sys.path.insert(0, os.path.abspath('.'))
+import sys, os
+sys.path.insert(0, os.path.abspath('..'))
+
+from borg import __version__ as sw_version
 
 # -- General configuration -----------------------------------------------------