runtime/PLCObject.py
changeset 2486 44c2a4e2b84d
parent 2485 ef327451d067
child 2487 6a4f9a061994
--- a/runtime/PLCObject.py	Thu Jan 31 14:10:06 2019 +0100
+++ b/runtime/PLCObject.py	Fri Feb 01 14:14:13 2019 +0100
@@ -37,6 +37,7 @@
 import md5
 from tempfile import mkstemp
 import shutil
+from functools import wraps
 
 from runtime.typemapping import TypeTranslator
 from runtime.loglevels import LogLevelsDefault, LogLevelsCount
@@ -72,6 +73,7 @@
 
 
 def RunInMain(func):
+    @wraps(func)
     def func_wrapper(*args, **kwargs):
         return MainWorker.call(func, *args, **kwargs)
     return func_wrapper