Hi, For my experimental version of leoDist.leo, I use abspath(c.fileName) to get the path of the opened outline, in this case /path/of/leo/dist I've noticed a strange behaviour, that unfortunately implies bugs. Maybe can you reproduce it and explain to me :
- put this code into a @button : g.es(c.fileName) g.es(g.os_path_abspath(c.fileName)) - clic on this button, you should get the following : > <bound method Commands.fileName of Commander 139748683191376: > u'/path/to/your/outline.leo'> > /path/to/your > That's OK, that's what I want. - Now create a node *@path test*, select it and click on the button. You should get this : > <bound method Commands.fileName of Commander 139748683191376: > u'/path/to/your/outline.leo'> > /path/to/your/*test* > Why does it return /path/to/your/*test *and not /path/to/your ? -- 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.
