def load_ironpython_test(*args): _add_reference_to_dlr_core() clr.AddReference("Microsoft.Scripting") clr.AddReference("Microsoft.Dynamic") clr.AddReference("IronPython") if args: return clr.LoadAssemblyFromFileWithPath(_iron_python_test_dll) else: clr.AddReferenceToFileAndPath(_iron_python_test_dll)
def load_iron_python_test(*args): import clr AddReferenceToDlrCore() clr.AddReference("Microsoft.Scripting") clr.AddReference("Microsoft.Dynamic") clr.AddReference("IronPython") if args: return clr.LoadAssemblyFromFileWithPath(testpath.iron_python_test_dll) else: clr.AddReferenceToFileAndPath(testpath.iron_python_test_dll)