Skip to content

Commit

Permalink
🐛 GCODE analysis: fix running against files with whitespace (#5009)
Browse files Browse the repository at this point in the history
* Added quotes to gcode filepath.

* Ran pre-commit on changed file.
  • Loading branch information
ofoxus committed May 6, 2024
1 parent 169f848 commit b1fbc8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/octoprint/filemanager/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def _do_analysis(self, high_priority=False):
command += ["--offset", str(offset[0]), str(offset[1])]
if g90_extruder:
command += ["--g90-extruder"]
command.append(self._current.absolute_path)
command.append(f'"{self._current.absolute_path}"')

self._logger.info(f"Invoking analysis command: {' '.join(command)}")

Expand Down

0 comments on commit b1fbc8a

Please sign in to comment.