def pyb_root(self): """pyboard root dirname.""" if self.connected: dev = rsh.find_serial_device_by_port(self.port) return getattr(dev, 'name_path', '/pyboard/')
def pyboard(self): """rshell pyboard instance.""" if self.connected: dev = rsh.find_serial_device_by_port(self.port) return getattr(dev, "pyb", None)