On Fri, Apr 23, 2021 at 9:58 PM [email protected] <[email protected]>
wrote:

> This appears in brief testing to work as intended.  The most tricky thing
> I tested:
>
> - ekr-path-test
>     - @path ~\ekr-test
>         -@file ~\ekr-tricky-test\test1.txt
>
> What should be the directory path for *test1.txt*?
>

Thanks for this report. Your test is better than mine.

> I would expect that the *~\ekr-tricky-test\ *should override the path in
> the *@path* node because of the leading "~" (which ought to denote an
> absolute path), and that is what happened. All the directories got created
> when I saved the outline.
>

I agree with your analysis. The behaviour should be similar to:

os.path.join(finalize('~\ekr-test'),  finalize('
~\ekr-tricky-test\test1.txt'))

where finalize is g.os_path_finalize. Or so I remember :-)

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/CAMF8tS0ZXUJJfJmGqXeXOMLOMDXYxQfCPrm0QzRu2DHA6gDDAA%40mail.gmail.com.

Reply via email to