def invoke(self, context, event):
        """Set the default import options before running the operator."""
        self.initialize_options_from_addon_preferences()
        context.window_manager.fileselect_add(self)
        return {"RUNNING_MODAL"}
Set the default import options before running the operator.
photogrammetry_importer/operators/openmvg_import_op.py