On Tue, Jun 4, 2019 at 2:40 PM jkn <[email protected]> wrote: > I do something like this, under Linux and Windows. I have @file nodes with > names like this: > > @file .{{sep}}docs{{sep}}myfilename.mwiki > > The {{sep}} gets magically converted to '\' under Windows and '/' under > Linux. I think there are other keywords available with this {{...}}syntax; > look for a thread "cross-platform file references - how to deal with?" >
FYI, searching reveals that the magic happens in the following functions: - g.os_path_expandExpression. - replace_path_expression. Two more visible wrappers around os.path methods use the above functions: g.os_path_finalize and g.os_path_finalize_join. 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAMF8tS0CvEb4C2MGwG25VQFHvUkLh1XV6bxE9K_HAjsVmwu2Ag%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
