file_manager: quote file name passed to metadata process

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2020-07-14 07:49:08 -04:00
parent 1d1edf33c3
commit 879ddea0e5
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ class FileManager:
self.gcode_metadata = exisiting_data
for fname in update_list:
cmd = " ".join([sys.executable, METADATA_SCRIPT, "-p",
gc_path, "-f", fname])
gc_path, "-f", "'" + fname + "'"])
shell_command = self.server.lookup_plugin('shell_command')
scmd = shell_command.build_shell_command(
cmd, self._shell_proc_callback)