← Back to team overview

yade-dev team mailing list archive

Re: Interesting python usage

 

> Oh, yes, I didnt do PyRun_SimpleString and pass my arguments as string, because the arguments change during run time.  The arguments are the id's of the bodies, which are currently handled by the Ig2Functor.
You can make string with those ids, like

string s=string("command(")+lexical_cast<string>(id1)+","+lexical_cast<string>(id2)+");"
PyRun_SimpleString(s.c_str());





Follow ups

References