diff --git a/ledger_pyreport/config.py b/ledger_pyreport/config.py index 0e6cb8c..da57a7f 100644 --- a/ledger_pyreport/config.py +++ b/ledger_pyreport/config.py @@ -14,7 +14,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +import os 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)