Merge lp:~spud/spud/schemata_env into lp:spud
Proposed by
Cian Wilson
Status: | Merged |
---|---|
Merged at revision: | 524 |
Proposed branch: | lp:~spud/spud/schemata_env |
Merge into: | lp:spud |
Diff against target: | 0 lines |
To merge this branch: | bzr merge lp:~spud/spud/schemata_env |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Patrick Farrell | Approve | ||
Review via email:
|
Description of the change
I'd like to be able to control where diamond picks up the schemata file by an environment variable so I can control this using modules.
This merge introduces this feature. The environment variable DIAMOND_CONFIG_PATH allows directories to be specified that contain the schemata directory. They may also contain the plugins directory for consistency.
Manual also updated for schemata.
To post a comment you must log in.
I think it's a good idea, and I'd like to see it merged, with minor editions.
The current order is ~/.diamond > /etc/diamond > /usr/share/diamond. The order you've implemented here is ~/.diamond > DIAMOND_CONFIG_PATH > /etc/diamond > /usr/share/diamond, but I'd like to see
DIAMOND_CONFIG_PATH > ~/.diamond (as I think setting a session-specific environment variable is usually stronger than setting options in your home directory).