How does IronPython loads modules while being hosted?
问题 I'm confused about the way IronPython loads modules while being hosted. I'm using IronPython 2.7.7 installed using the MSI package and I've referenced C:\Program Files (x86)\IronPython 2.7\IronPython.dll and C:\Program Files (x86)\IronPython 2.7\Microsoft.Scripting.dll . Sometimes IronPython fails to load a module throwing IronPython.Runtime.Exceptions.ImportException: 'No module named modulename' , but sometimes everything works fine. For example, var engine = Python.CreateEngine(); engine