Klipper plugin refactoring with embedded macros
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user