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*?  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.

Tested with:

Leo 6.4-devel, ekr-1903-path branch, build 43e51f1cef
2021-04-22 19:16:07 -0500
Python 3.8.9, PyQt version 5.15.1
Windows 10 AMD64 (build 10.0.19041) SP0
On Friday, April 23, 2021 at 7:44:32 AM UTC-4 Edward K. Ream wrote:

> This branch completes #1903 
> <https://github.com/leo-editor/leo-editor/issues/1903>, with PR #1005 
> <https://github.com/leo-editor/leo-editor/pull/1905>.  I'll merge the 
> ekr-1903-path branch into devel in a few days, after I return from a short 
> vacation.  Please report any problems immediately.
>
> The work is a thorough housecleaning of the wrappers (in leoGlobals.py) 
> for os.path methods. I began this work soon after completing #1900 
> <https://github.com/leo-editor/leo-editor/issues/1900>, which, for the 
> first time, allows ~ in @<file> nodes.
>
> Simplifying these wrappers has been on my mind for years. I even briefly 
> considered eliminating these wrappers, but that would be a very bad idea, 
> for reasons explained in #1903. In brief, the wrappers do more (in some 
> cases, a lot more) than the corresponding os.path functions. This surprised 
> me :-)
>
> *Summary*
>
> The ekr-1903-path branch is a long overdue housecleaning. It should work 
> exactly as before. Please let me know if it doesn't.
>
> 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/bd143b0c-deb1-4ea8-8b4d-7585732ba81cn%40googlegroups.com.

Reply via email to