Escape double quotes in filename
This commit is contained in:
parent
e8d9cf8f00
commit
7d1bb0d3f7
@ -69,7 +69,8 @@ class AudacityController:
|
||||
select_status = self._send_command("SelectAll")
|
||||
log.debug(f"{select_status=}")
|
||||
|
||||
export_cmd = f'Export2: Filename="{self.path}" NumChannels=2'
|
||||
# Escape any double quotes in filename
|
||||
export_cmd = f'Export2: Filename="{self.path.replace('"', '\\"')}" NumChannels=2'
|
||||
export_status = self._send_command(export_cmd)
|
||||
log.debug(f"{export_status=}")
|
||||
self.path = ""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user