Hi:
Im trying to get the file of a selected node, specifically a node which has 
a @image directive on it.
I have tried to use:
c.getNodeFileName()
But it will show a blank line when I use it on that node.
The workaround I am using is this one:

import os
g.es(os.path.join(c.getNodePath(c.p),g.getUrlFromNode(c.p)[7:]))


Although there is a particular case in which it doesnt work and its 
intriguing, my bet would be its a bug but since im learning how Leo behaves 
with files, I would like to get confirmation on that:

*Working:*

Header: @image Abs_Path.jpg
First body line:

Header:@image
First body line: file_name.jpg


*Not working:*

Header: @image file_name.jpg
First body line:

(The rest of the path is given in parent nodes, on both cases, so 
file_name.jpg actually gets the full path to the file from them)

Any thoughts?

Thanks!

-- 
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/groups/opt_out.


Reply via email to