connectors/PYRO/__init__.py
changeset 699 6ff64cadb1ff
parent 493 015a803301b9
child 717 1c23952dbde1
--- a/connectors/PYRO/__init__.py	Mon Mar 05 12:02:20 2012 +0100
+++ b/connectors/PYRO/__init__.py	Sun Mar 11 19:42:14 2012 +0100
@@ -130,6 +130,10 @@
             return RemotePLCObjectProxy.GetPLCstatus()
         GetPLCstatus = PyroCatcher(_PyroGetPLCstatus, "Broken")
 
+        def _PyroRemoteExec(self, script, **kwargs):
+            return RemotePLCObjectProxy.RemoteExec(script, **kwargs)
+        RemoteExec = PyroCatcher(_PyroRemoteExec, (-1, "RemoteExec script failed!"))
+
         def __getattr__(self, attrName):
             member = self.__dict__.get(attrName, None)
             if member is None: