Allow overriding config file location with LEDGER_PYREPORT_CONFIG environment variable
This commit is contained in:
parent
4159032674
commit
8c8c0c626f
@ -14,7 +14,8 @@
|
|||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
import os
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
with open('config.yml', 'r') as f:
|
with open(os.getenv('LEDGER_PYREPORT_CONFIG', 'config.yml'), 'r') as f:
|
||||||
config = yaml.safe_load(f)
|
config = yaml.safe_load(f)
|
||||||
|
Reference in New Issue
Block a user