diff --git a/kiauh/extensions/gcode_shell_cmd/assets/gcode_shell_command.py b/kiauh/extensions/gcode_shell_cmd/assets/gcode_shell_command.py index 85b664b..0b2203e 100644 --- a/kiauh/extensions/gcode_shell_cmd/assets/gcode_shell_command.py +++ b/kiauh/extensions/gcode_shell_cmd/assets/gcode_shell_command.py @@ -16,6 +16,7 @@ class ShellCommand: self.gcode = self.printer.lookup_object("gcode") cmd = config.get("command") cmd = os.path.expanduser(cmd) + cmd = os.path.expandvars(cmd) self.command = shlex.split(cmd) self.timeout = config.getfloat("timeout", 2.0, above=0.0) self.verbose = config.getboolean("verbose", True)