*I have wrappers in leo for some of my python scripts. If I change the code
in these scripts then leo doesn't load the changes. It is keeping a cached
version. I have to shut down leo and open it again to get it to read the
scripts again.*
*Here is how leo is setup.*
*Node: *
*def setupPath():*
* import sys*
* sys.path.append('/home/py/src')*
*Node:*
*def scriptWrapper(usr, pwd ):*
* exec(g.findTestScript(c,'setupPath')) *
* setupPath()*
* from pyLib.doSomething import doSomthing*
* a = doSomthing()*
* a.login(usr, pwd)*
* return( True )*
*Node:*
* exec(g.findTestScript(c,'doSomthing')) *
* usr = 'asf'*
* pwd = 'fdsa'*
* doSomthing(url, usr, pwd)*
*The setupPath function allows me to setup the path to my scripts in one
place. The scriptWrapper method is just a wrapper for my scripts. There are
some extra parameters I need to set for the scripts to run in leo. The 3*
*rd** node is an instance where I'm calling doSomthing. I run it with
ctl-b. I'll use the same code in multiple places for different users.*
*How can I get leo to automatically re-read the results when I change the
scripts? I open to rewriting the code but I want to keep the intentions I
mentioned previously. *
*Here is the log window from leo*
*-------------------------------------*
*Leo 4.11 final, build 5020, 2012-02-26 13:18:08 -0600*
Python 2.7.7, qt version 4.8.4
linux2
*-------------------------------------*
*Brian*
--
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.
For more options, visit https://groups.google.com/d/optout.