Skip to content

Commit f1998ed

Browse files
committed
Fix broken import
1 parent 3cec8c4 commit f1998ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from os.path import relpath
1818
from inspect import getsourcefile, getsourcelines
1919
from pathlib import Path
20-
from subprocess import Popen
2120

2221
sys.path.insert(0, Path(__file__).parents[2].resolve().as_posix())
2322

@@ -95,8 +94,9 @@ def linkcode_resolve(domain, info):
9594
filename = f"skillsnetwork/{fn}#L{lineno}-L{lineno + len(source) - 1}"
9695
except Exception as e:
9796
return None
97+
import subprocess
9898

99-
commit_hash = Popen(
99+
commit_hash = subprocess.Popen(
100100
["git", "rev-parse", "HEAD"],
101101
stdout=subprocess.PIPE,
102102
universal_newlines=True,

0 commit comments

Comments
 (0)