[Python.NET] Problem invoking a method
Serge R
deus.verus at gmail.com
Tue Apr 1 22:22:36 CEST 2008
Hello everyone. This is my first time using any mailing list, I hope I did
everything right.
My issue is that I can't call InvokeMethod on an imported module because it
always claims the member does not exist. Further investigation suggests that
my module isn't being imported correctly at all, but instead I'm getting
some 'bank'.
C# end:
PyObject module = PythonEngine.ImportModule("test");
Console.WriteLine(module.Dir());
module.InvokeMethod("testFunction", new PyTuple());
test.py:
def testFunction():
print "hello"
when the Dir gets printed, I don't see any testFunction.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythondotnet/attachments/20080402/cb9ae601/attachment.htm
More information about the PythonDotNet
mailing list