mirror of
https://github.com/aclist/dztui.git
synced 2026-11-10 03:50:38 +01:00
change: parse repository root
This commit is contained in:
1 parent
370edbe01b
commit
2479cbd41b
7 files changed
+27
-19
No files matched your search
+1
-9
@@ -2,15 +2,7 @@ import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
from dzgui.app_init import build_gui
|
||||
|
||||
|
||||
def get_git_root() -> Path:
|
||||
proc = subprocess.run(
|
||||
["git", "rev-parse", "--show-toplevel"], capture_output=True, text=True
|
||||
)
|
||||
if proc.returncode != 0:
|
||||
raise OSError("Failed to parse git root")
|
||||
return Path(proc.stdout.rstrip())
|
||||
from shared import get_git_root
|
||||
|
||||
|
||||
def get_image_path() -> Path:
|
||||
|
||||
Reference in new issue
Block a user