On Sun, Mar 11, 2012 at 9:36 PM, Ville M. Vainio <[email protected]> wrote:
>
> What I want is akin to:
>
>
> parts = unl.split("#",1)
>
> g.openWithFileName(parts[0])
> ... and then navigate to right part of tree with parts[1]
This code works fine for me:
def open_unl(unl):
parts = unl.split("#",1)
c = g.openWithFileName(parts[0])
segs = parts[1].split("-->")
g.recursiveUNLSearch(segs, c)
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.