Skip to content

Instantly share code, notes, and snippets.

@kantlivelong
Created January 4, 2018 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kantlivelong/833470e3632bb84f880bf0f23cd743bf to your computer and use it in GitHub Desktop.
Save kantlivelong/833470e3632bb84f880bf0f23cd743bf to your computer and use it in GitHub Desktop.
def _TEST(self, comm, script_type, script_name, *args, **kwargs):
if not script_type == "gcode":
return None
if script_name == "afterPrinterConnected":
prefix = "M117 prefix"
postfix = "M117 postfix"
return prefix, postfix
elif script_name == "beforePrinterDisconnected":
prefix = None
postfix = None
variables = dict(testvar="Hello!")
return prefix, postfix, variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment