7 ms·
This is good advice and my own software is following it: $ oq info cfg Looking at the following paths (the last wins) /opt/openquake/oq-engine/openquake/engi
by micheles 3y ago
This is good advice and my own software is following it:
$ oq info cfg
Looking at the following paths (the last wins)
/opt/openquake/oq-engine/openquake/engine/openquake.cfg
/opt/openquake/venv/openquake.cfg
However, I do not think there is any standard API to follow, I used "info cfg" but many alternatives were possible. So sysadmins have to explore to find out which is the introspection command to give. Not ideal, but I don't think there is a solution.
- kataklasm 3y agoI would look for something like this in the help output, i.e. --help or -h. And of course the manpage if you do supply one.
- cesarb 3y agoAnother good place for that is the --version output, if your --version is one of those verbose multi-line ones (instead of a basic single-line output).