From 0102ed64b5dfe01cf0f112cb0aac0ded959412e0 Mon Sep 17 00:00:00 2001 From: Eric Trombly Date: Sun, 22 Mar 2020 17:59:16 -0500 Subject: [PATCH] Change example_pre to use a list of commands instead of one string --- src/Mod/Path/PathScripts/post/example_pre.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/post/example_pre.py b/src/Mod/Path/PathScripts/post/example_pre.py index 6e90d556b9..48ceb433bf 100644 --- a/src/Mod/Path/PathScripts/post/example_pre.py +++ b/src/Mod/Path/PathScripts/post/example_pre.py @@ -99,7 +99,7 @@ def parse(inputstring): if lin[0].upper() in ["G", "M"]: # found a G or M command: we store it #output += lin + "\n" - output.append(lin) # + "\n" + output.append(Path.Command(str(lin))) # + "\n" last = lin[0].upper() for c in lin[1:]: if not c.isdigit(): @@ -109,7 +109,7 @@ def parse(inputstring): lastcommand = last elif lastcommand: # no G or M command: we repeat the last one - output.append(lastcommand + " " + lin) # + "\n" + output.append(Path.Command(str(lastcommand + " " + lin))) # + "\n" print("done preprocessing.") return output