'PyRunner' module is unable to call self-defined function
I have installed the trunk version of Yade and I met two weird things when I tried to run example cases.
The first thing is that the example scripts cannot run directly if I don add "from yade import wrapper" to the beginning and "wrapper." to relevant instances. Since I installed yade totally according to the installation guide, I can't figure out why the example scripts cannot run without modification.
The second thing is that the self-defined function added to O.engines by "PyRunner" module cannot run propperly. It simply shows "name 'XXXXX' is not define" on screen. It seems OK if the command of PyRunner is a simple sentence such as command="print 'Hello World' ". I don't know why the selfdefined function cannot work here.
Hope you can help find out the reason!
Thank you very much
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Samarian Zhao
- Solved:
- Last query:
- Last reply: