perform some path magic so Voicemeeter receives the entire path

patch bump
This commit is contained in:
2026-03-01 21:29:09 +00:00
parent 2fd7b8ad8b
commit 23b99cb66b
2 changed files with 4 additions and 2 deletions

View File

@@ -102,7 +102,9 @@ class Recorder(IRemote):
def load(self, file: os.PathLike):
try:
self.setter('load', str(file))
# Convert to string, use forward slashes, and wrap in quotes for spaces
file_path = f'"{os.fspath(file).replace(chr(92), "/")}"'
self.setter('load', file_path)
except UnicodeError:
raise VBANCMDError('File full directory must be a raw string')