<div dir="ltr">I am using python scripts  to extend my C# application.  Different configurations can implement concrete instances of interfaces differently.  I implement the derived class in python and compile them using pyc.<div><br></div><div>I have unique versions of the files for each configuration but they have the same name in each configuration.</div><div><br></div><div>If I start fresh and load this modules using clr.AddReference() and import it works fine.</div><div><br></div><div>If I change configurations, the previous implementations appear to be cached in the system.  I will get the concrete implementation of the original configuration not the newer one.</div><div><br></div><div>I have tried:</div><div><br></div><div>Adding reload() after all the import statements.</div><div>Tried making my PythonEngine in a new AppDomain</div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>Get an error that Microsoft.Scripting.SourceUnit is not serializable.</div></blockquote></div><div><br></div><div>Any ideas or help would be appreciated.</div></div>