This rev adds support for @ifenv, improves support for @ifplatform and
@ifhostname.
I have decided not to add support for either @if or @ifgui. The former is
not needed and is a scripting risk, the latter is pretty much useless. Here
are the details:
*@ifenv *name, one-or-more-comma-separated values
Includes descendant settings if os.getenv(name) matches any of the values.
- Case is significant in the *name* of the environment variable.
- Case is ignored in the *values*.
Examples:
@ifenv HOSTNAME,bob
Enables descendant settings if os.environ('HOSTNAME') is 'Bob' or 'bob'
@ifenv EDITOR,leo,lion
Enables descendant settings if os.environ('Editor') is 'Leo' or 'Lion',
etc.
*@ifplatform* name, one-or-more-comma-separated values.
Includes descendant settings if sys.platform matches any of the values,
ignoring case.
Examples:
@ifplatform darwin,linux2
Enables descendant settings for MacOS and Linux.
@ifplatform win32
Enables descendant settings for Windows
*@ifhostname* name
Includes descendant settings if os.environ('HOSTNAME') == name
*@ifhostname* !name
Includes descendant settings if os.environ('HOSTNAME') != name
Please report any problems
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 http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.