[IronPython] IronPython.Runtime.Exceptions.ImportException: No module named System

Huzaifa huzi_1982 at hotmail.com
Tue Aug 5 16:45:52 PDT 2008


I am trying this code , and it is giving me this exception
"IronPython.Runtime.Exceptions.ImportException: No module named System"

input = _scriptEngine.CreateScriptSourceFromString (

@"import clr
from System import *
clr.AddReferenceToFile("ABC.dll')
", System.Scripting.SourceCodeKind.Statements);
          
input.Execute (defaultScope);

IronPython.Runtime.Exceptions.ImportException: No module named System

I think it is not able to find the location of System.dll. If it would be Py
1.1 i could do like this 
_pyEngine.Sys.path.Add(path);

but how to do it in 2.0
-- 
View this message in context: http://www.nabble.com/IronPython.Runtime.Exceptions.ImportException%3A-No-module-named-System-tp18841986p18841986.html
Sent from the IronPython mailing list archive at Nabble.com.



More information about the Users mailing list