My apologies. I did a full “clean” install from devel branch and can verify that the @path with @file sub-node using “../“ pattern does indeed work just fine on my OS X machine.
On Sunday, April 11, 2021 at 8:04:57 PM UTC-4 Edward K. Ream wrote: > On Sun, Apr 11, 2021 at 4:17 PM TEK42 <[email protected]> wrote: > >> >> Unfortunately, there is a fly in the ointment. I have an external file >>> at a location that uses "..", like this: >>> >>> - @path d:/Tom/devel/leo/plugins >>> -@file ../plugins/viewrendered3.py >>> >>> >> On my OS X machine the above pattern doesn’t work at all (unclear about >> the reasoning for the pattern too). >> I must take out the “../plugins/“ part of the @file for it to be able >> write/read the file. >> > > My apologies. All the obvious things are supposed to work. Leo has several > wrappers around g.os.path. Search for the node "g.os_path_ Wrappers" in > leoPy.leo (LeoPyRef.leo). > > g.os_path_finalize_join is the workhorse. It should handle just about > everything, but apparently it doesn't. > > It's surprisingly difficult to make everything work uniformly everywhere. > There are gazillions of related calls in Leo. > > Edward > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/c81ea432-31fb-45dc-8327-55b89084ce6cn%40googlegroups.com.
