|
17 | 17 | import sys |
18 | 18 | sys.path.insert(0, os.path.abspath('../')) |
19 | 19 |
|
20 | | -""" |
21 | | -sys.path.append(os.path.abspath( |
22 | | - os.path.join(__file__, "../hbbrain") |
23 | | -)) |
24 | | -
|
25 | | -sys.path.append(os.path.abspath( |
26 | | - os.path.join(__file__, "../hbbrain/base") |
27 | | -)) |
28 | | -sys.path.append(os.path.abspath( |
29 | | - os.path.join(__file__, "../hbbrain/mixed_data") |
30 | | -)) |
31 | | -sys.path.append(os.path.abspath( |
32 | | - os.path.join(__file__, "../hbbrain/numerical_data") |
33 | | -)) |
34 | | -sys.path.append(os.path.abspath( |
35 | | - os.path.join(__file__, "../hbbrain/utils") |
36 | | -)) |
37 | | -""" |
38 | | - |
39 | 20 | # on_rtd is whether we are on readthedocs.org, this line of code grabbed |
40 | 21 | # from docs.readthedocs.org |
41 | 22 | on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
@@ -157,11 +138,7 @@ def find_source(): |
157 | 138 | except Exception: |
158 | 139 | filename = info['module'].replace('.', '/') + '.py' |
159 | 140 | import subprocess |
160 | | - # tag = subprocess.Popen(['git', 'rev-parse', 'HEAD'], |
161 | | - # stdout=subprocess.PIPE, |
162 | | - # universal_newlines=True).communicate()[0][:-1] |
163 | | - # https://github.com/runawayhorse001/statspy/blob/master/statspy/basics.py |
164 | | - # https://github.com/runawayhorse001/SphinxGithub/blob/master/statspy/basics.py |
| 141 | + |
165 | 142 | return "https://github.com/UTS-CASLab/hyperbox-brain/blob/main/%s" % (filename) |
166 | 143 |
|
167 | 144 | # The following is used by sphinx.ext.linkcode to provide links to github |
|
0 commit comments