On Thu, 15 Jun 2017 08:33:07 -0500 Terry Brown <[email protected]> wrote:
> Also I have some Leo code for recursive tree comparisons that seems to > be not working currently, will see if I can get it working again. Actually it is working, I just wasn't using it right. I've posted it here: https://github.com/leo-editor/snippets/blob/master/utils/diff_trees.py In cases where a node exists in both trees but differs, the code lists both nodes one after the other. To compare those in more detail, this can be useful: selected = c.getSelectedPositions() open('/tmp/a_diff', 'w').write(selected[0].b) open('/tmp/b_diff', 'w').write(selected[1].b) import os os.system("meld /tmp/a_diff /tmp/b_diff &") Cheers -Terry -- 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 https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
