lib/rbbt/util/python.rb in rbbt-util-5.35.2 vs lib/rbbt/util/python.rb in rbbt-util-5.35.3
- old
+ new
@@ -52,9 +52,13 @@
def self.import_method(module_name, method_name, as = nil)
RbbtPython.pyfrom module_name, import: method_name
RbbtPython.method(method_name)
end
+ def self.call_method(module_name, method_name, *args)
+ RbbtPython.import_method(module_name, method_name).call(*args)
+ end
+
def self.exec(script)
PyCall.exec(script)
end
def self.iterate_index(elem, options = {})