Script execution

This commit is contained in:
gac-S_Changer
2017-02-28 08:57:02 +01:00
parent 6d35f7add7
commit 0b5de6e608

View File

@@ -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)