From 23b99cb66bd185ad42928c7cc162018e449cdae7 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 1 Mar 2026 21:29:09 +0000 Subject: [PATCH] perform some path magic so Voicemeeter receives the entire path patch bump --- pyproject.toml | 2 +- vban_cmd/recorder.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4538fc8..8e5fbad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "vban-cmd" -version = "2.8.0" +version = "2.8.1" description = "Python interface for the VBAN RT Packet Service (Sendtext)" authors = [{ name = "Onyx and Iris", email = "code@onyxandiris.online" }] license = { text = "MIT" } diff --git a/vban_cmd/recorder.py b/vban_cmd/recorder.py index bb6a0b2..e3349d8 100644 --- a/vban_cmd/recorder.py +++ b/vban_cmd/recorder.py @@ -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')