import os import bpy class GB_sidecar(bpy.types.Operator): """ Handling of sidecar file """ bl_idname = "gb.sidecar" bl_label = "Sidecar file handling for Godot bridge" bl_options = {'REGISTER', 'UNDO'} def invoke(self, context, event): return self.execute(context) def execute(self, context): return {"FINISHED"} def read(filename): print("filename: {}".format(filename)) return {"FINISHED"}