I have a class library that is usually called from a .net console or web application. It integrates with various components, and relies on an app.config or web.config.
I
Translating this blog post into Python, this should work:
import clr import System.AppDomain System.AppDomain.CurrentDomain.SetData(“APP_CONFIG_FILE”, r”c:\your\app.config”)