Skip to content

fixed assembly load with full path, + post-build script #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
exception message passed from Python to .NET correctly
  • Loading branch information
denfromufa committed Jul 16, 2015
commit 108d7dd05ba5c43ae050463db3c5838a4b3f0948
4 changes: 3 additions & 1 deletion src/runtime/pythonexception.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public PythonException() : base()
if ((_pyType != IntPtr.Zero) && (_pyValue != IntPtr.Zero))
{
string type = new PyObject(_pyType).GetAttr("__name__").ToString();
string message = Runtime.GetManagedString(_pyValue);
IntPtr _PyValueStr = Runtime.PyObject_Str(_pyValue);
string message = Runtime.GetManagedString(_PyValueStr);
//string message = Runtime.GetManagedString(_pyValue);
_message = type + " : " + message;
}
if (_pyTB != IntPtr.Zero)
Expand Down