diff --git a/src/bonsai/bonsai/bim/module/drawing/operator.py b/src/bonsai/bonsai/bim/module/drawing/operator.py index 2efa980659..36ffd0d7b9 100644 --- a/src/bonsai/bonsai/bim/module/drawing/operator.py +++ b/src/bonsai/bonsai/bim/module/drawing/operator.py @@ -2264,7 +2264,7 @@ class CreateSheets(bpy.types.Operator, tool.Ifc.Operator): # [["inkscape", "svg", "-o", "eps"], ["pstoedit", "-dt", "-f", "dxf:-polyaslines -mm", "eps", "dxf", "-psarg", "-dNOSAFER"]] commands = json.loads(svg2dxf_command) for command in commands: - command[0] = shutil.which(command[0]) or command[0] + command[0] = shutil.which(str(command[0])) or command[0] subprocess.run([replacements.get(c, c) for c in command]) if self.open_viewer: diff --git a/src/bonsai/bonsai/tool/drawing.py b/src/bonsai/bonsai/tool/drawing.py index e22470c8e3..3c54e53fe5 100644 --- a/src/bonsai/bonsai/tool/drawing.py +++ b/src/bonsai/bonsai/tool/drawing.py @@ -1321,7 +1321,7 @@ class Drawing(bonsai.core.tool.Drawing): commands = json.loads(user_command) replacements = {"path": path} for command in commands: - command[0] = shutil.which(command[0]) or command[0] + command[0] = shutil.which(str(command[0])) or command[0] subprocess.Popen([replacements.get(c, c) for c in command]) else: if platform.system() == "Darwin":