[IronPython] sys.path.append bug?

JoeSox joesox at gmail.com
Fri Jun 2 16:50:33 PDT 2006


Please take a look at some IronPython behavior I have observed using
MS C# Express 2005 and IronPython beta7.....


MyClass.cs:....
     public static string myapppath = Application.StartupPath;

....

mymethod().....
    ipEngine1.Execute("import sys");
    ipEngine1.Execute(@"sys.path.append('" + Paths.MiscDirs.myapppath + "')");

======= IronPython creases the string:
+		SyncRoot	{['C:\\Documents and Settings\\Administrator\\My
Documents\\Visual Studio
2005\\Projects\\CNU2Demo\\CNU2Demo\x08in\\Debug']}	object
{IronPython.Runtime.List}
=======

It appears the "CNU2Demo\x08in\\Debug" should read "CNU2Demo\\bin\\Debug"

Any ideas?
-- 
Later, Joe


More information about the users mailing list