Created
January 4, 2018 21:20
-
-
Save kantlivelong/833470e3632bb84f880bf0f23cd743bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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