Przeglądaj źródła

try if readthedocs finds the borg package this way

Thomas Waldmann 9 lat temu
rodzic
commit
dcdcbda87d
1 zmienionych plików z 4 dodań i 4 usunięć
  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
 # All configuration values have a default; values that are commented out
 # serve to show the default.
 # serve to show the default.
 
 
-from borg import __version__ as sw_version
-
 # If extensions (or modules to document with autodoc) are in another directory,
 # 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
 # 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.
 # 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 -----------------------------------------------------
 # -- General configuration -----------------------------------------------------