Klipper plugin refactoring with embedded macros

This commit is contained in:
Félix Boisselier committed 2024-05-12 17:13:47 +02:00
1 parent d9060fed3b
commit 30a1910513
21 files changed
+762 -644

No files matched your search

+2
View File
@@ -11,6 +11,7 @@ from pathlib import Path
import numpy as np
from scipy.signal import spectrogram
from .console_output import ConsoleOutput
@@ -70,6 +71,7 @@ def get_git_version():
# Get the absolute path of the script, resolving any symlinks
# Then get 2 times to parent dir to be at the git root folder
from git import GitCommandError, Repo
script_path = Path(__file__).resolve()
repo_path = script_path.parents[1]
repo = Repo(repo_path)