We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7121906 commit cf45bf0Copy full SHA for cf45bf0
doc/sphinx/source/conf.py
@@ -12,7 +12,8 @@
12
13
import os
14
import sys
15
-sys.path.insert(0, os.path.abspath('../../../'))
+three_up = os.path.abspath(os.path.join('..', '..', '..'))
16
+sys.path.insert(0, three_up)
17
18
from recommonmark.parser import CommonMarkParser
19
@@ -23,8 +24,12 @@
23
24
copyright = '2021, Anton Obukhov'
25
author = 'Anton Obukhov'
26
27
+with open(os.path.join(three_up, 'torch_fidelity', 'version.py')) as f:
28
+ version_pycode = f.read()
29
+exec(version_pycode)
30
+
31
# The full version, including alpha/beta/rc tags
-release = '0.3.0'
32
+release = __version__
33
34
35
# -- General configuration ---------------------------------------------------
0 commit comments