Skip to content

Commit 23b99cb

Browse files
committed
perform some path magic so Voicemeeter receives the entire path
patch bump
1 parent 2fd7b8a commit 23b99cb

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "vban-cmd"
3-
version = "2.8.0"
3+
version = "2.8.1"
44
description = "Python interface for the VBAN RT Packet Service (Sendtext)"
55
authors = [{ name = "Onyx and Iris", email = "code@onyxandiris.online" }]
66
license = { text = "MIT" }

vban_cmd/recorder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ def gain(self, val: float):
102102

103103
def load(self, file: os.PathLike):
104104
try:
105-
self.setter('load', str(file))
105+
# Convert to string, use forward slashes, and wrap in quotes for spaces
106+
file_path = f'"{os.fspath(file).replace(chr(92), "/")}"'
107+
self.setter('load', file_path)
106108
except UnicodeError:
107109
raise VBANCMDError('File full directory must be a raw string')
108110

0 commit comments

Comments
 (0)