Source
148
148
kwargs_[k] = v
149
149
150
150
if __DEBUG:
151
151
print(converter_function_string)
152
152
pprint(args_position_dict)
153
153
pprint(args_)
154
154
155
155
# override args by the converter generated from xml
156
156
casatasks.casalog.post('loaded constraints from XML', 'DEBUG')
157
157
_local = {}
158
-
exec(converter_function_string, _local)
158
+
exec(converter_function_string, globals(), _local)
159
159
_local[__FUNCTION](args_, args_position_dict, supplied_args_flags)
160
160
161
161
# execute task
162
162
retval = func(*args_, **kwargs_)
163
163
164
164
return retval
165
165
return wrapper
166
166
167
167
168
168
def __get_taskxmlfilepath(task):