On Saturday, April 8, 2023 at 12:13:36 PM UTC-5 Edward K. Ream wrote:

> I shall release Leo 6.7.3 as soon as possible after we test PR #3264 
<https://github.com/leo-editor/leo-editor/pull/3264>.

*Aha* (Thanks, Thomas): Python's os.path 
<https://docs.python.org/3/library/os.path.html> module contains all the 
tools Leonistas will ever need. Leo can *easily* apply all the os.path 
conventions to all paths of @<file> nodes.

os.path can expand os.environ constants, so Leo can *easily *replace $name 
or ${name} by the value of environment variable *name*. 

No need to invent Leo-only conventions! No need for path expressions! 
Bye-bye {{ and }}.

Leo's documentation will give examples of using os.path. Like: @file 
$PROJECT_A_BASE/x.py.

> Those who use path expressions should do a global search/replace (on 
headlines).

Still true, but the revised @<file> nodes will be safe, standard, and 
likely simpler.

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/6cbfac61-a5df-4829-99b2-52daf475246cn%40googlegroups.com.

Reply via email to