mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-11 17:44:28 +05:00
feat(gcode_shell_command): allowing for expanding env vars (#747)
allowing for expanding env vars
This commit is contained in:
@@ -16,6 +16,7 @@ class ShellCommand:
|
|||||||
self.gcode = self.printer.lookup_object("gcode")
|
self.gcode = self.printer.lookup_object("gcode")
|
||||||
cmd = config.get("command")
|
cmd = config.get("command")
|
||||||
cmd = os.path.expanduser(cmd)
|
cmd = os.path.expanduser(cmd)
|
||||||
|
cmd = os.path.expandvars(cmd)
|
||||||
self.command = shlex.split(cmd)
|
self.command = shlex.split(cmd)
|
||||||
self.timeout = config.getfloat("timeout", 2.0, above=0.0)
|
self.timeout = config.getfloat("timeout", 2.0, above=0.0)
|
||||||
self.verbose = config.getboolean("verbose", True)
|
self.verbose = config.getboolean("verbose", True)
|
||||||
|
|||||||
Reference in New Issue
Block a user