If an action to sell real property is prosecuted by an executor or administrator, the executor or administrator shall be allowed the compensation provided by law, by the probate court from which the executor's or administrator's letters issued. If that action is by a guardian, the guardian's duties and obligations in the action shall be considered by the court appointing the guardian in awarding the compensation that the court considers reasonable.
R.C. § 2127.37