mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2026-03-02 16:29:11 +00:00
perform some path magic so Voicemeeter receives the entire path
patch bump
This commit is contained in:
parent
2fd7b8ad8b
commit
23b99cb66b
@ -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" }
|
||||
|
||||
@ -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')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user