mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:27:09 +00:00
Add DOUGAL_ROOT environment variable support.
When searching for configuration files, we look in the following places: 1. $DOUGAL_ROOT/etc/ 2. $HOME/software/etc/ 3. ./software/etc/
This commit is contained in:
@@ -11,7 +11,7 @@ surveys should be under $HOME/etc/surveys/*.yaml. In both cases,
|
|||||||
$HOME is the home directory of the user running this script.
|
$HOME is the home directory of the user running this script.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
prefix = os.environ.get("HOME", ".")
|
prefix = os.environ.get("DOUGAL_ROOT", os.environ.get("HOME", ".")+"/software")
|
||||||
|
|
||||||
def read (file = None):
|
def read (file = None):
|
||||||
if file is None:
|
if file is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user