gcode: Rename run_script() to run_script_from_command()

Emphasize that the run_script() method is only valid when run from a
g-code command.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-06-30 14:08:02 -04:00
parent 53b718a621
commit 4ad44e3e83
6 changed files with 10 additions and 10 deletions

View file

@ -21,7 +21,7 @@ class GCodeMacro:
raise self.gcode.error("Macro %s called recursively" % (self.alias,))
self.in_script = True
try:
self.gcode.run_script(self.script)
self.gcode.run_script_from_command(self.script)
finally:
self.in_script = False