Script execution
This commit is contained in:
@@ -54,7 +54,8 @@ class RobotTCP(TcpDevice, Stoppable):
|
||||
|
||||
def evaluate(self, cmd, timeout=None):
|
||||
ret = self.execute('eval', cmd, timeout=timeout)
|
||||
if ret.strip() != "": raise Exception(ret)
|
||||
if type(ret) is str:
|
||||
if ret.strip() != "": raise Exception(ret)
|
||||
|
||||
def get_var(self, name):
|
||||
return self.execute('get_var', name)
|
||||
|
||||
Reference in New Issue
Block a user