GodotPythonJSONRPC/TestPythonInExport.gd

14 lines
337 B
GDScript3
Raw Normal View History

2024-07-14 08:54:08 -07:00
extends Node
func _ready():
2024-07-14 12:58:20 -07:00
var pw : KiriPythonWrapperInstance = KiriPythonWrapperInstance.new(
"/storage/git2/GodotJSONRPCTest/addons/KiriPythonRPCWrapper/KiriPythonRPCWrapper/test_module/__init__.py")
pw.setup_python()
pw.start_process()
var ret = pw.call_rpc_sync("func_to_call", ["test string whatever blah"])
print(ret)