On Mon, 10 Jun 2013 19:43:04 -0400
Jacob Peck <[email protected]> wrote:

> exec(g.findTestScript("sumNode") should do the trick.

And if it doesn't you can try

  exec(g.findTestScript(c,'name of node'))

;-)

Cheers -Terry

> -->Jake
> On Jun 10, 2013 7:39 PM, "brian" <[email protected]> wrote:
> 
> > How do I put a function in a node and execute python code that calls that
> > function in another node?
> >
> >
> >  For example a outline with nodes:
> >
> > -core functions
> >
> > ----sumNode
> >
> > -projects
> >
> > ----project1
> >
> > ----project2
> >
> >
> >  <sumNode> will have the python code:
> >
> > def sum(a,b):
> >
> > return a+b
> >
> >
> >  <project1> will have the python code:
> >
> > c = sum(1,2)
> >
> >
> >  <project1> will have the python code:
> >
> > c = sum(3,8)
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "leo-editor" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to [email protected].
> > To post to this group, send email to [email protected].
> > Visit this group at http://groups.google.com/group/leo-editor?hl=en-US.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
> >
> 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to