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 3cec8c4 commit f1998edCopy full SHA for f1998ed
doc/source/conf.py
@@ -17,7 +17,6 @@
17
from os.path import relpath
18
from inspect import getsourcefile, getsourcelines
19
from pathlib import Path
20
-from subprocess import Popen
21
22
sys.path.insert(0, Path(__file__).parents[2].resolve().as_posix())
23
@@ -95,8 +94,9 @@ def linkcode_resolve(domain, info):
95
94
filename = f"skillsnetwork/{fn}#L{lineno}-L{lineno + len(source) - 1}"
96
except Exception as e:
97
return None
+ import subprocess
98
99
- commit_hash = Popen(
+ commit_hash = subprocess.Popen(
100
["git", "rev-parse", "HEAD"],
101
stdout=subprocess.PIPE,
102
universal_newlines=True,
0 commit comments