From a4e03689f51bbde06d95f63b8d4e64de620f037b Mon Sep 17 00:00:00 2001 From: Ken Sanislo Date: Wed, 26 Dec 2018 13:36:12 -0800 Subject: [PATCH] config file settable from env instead --- tcc-exporter | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcc-exporter b/tcc-exporter index 393d265..ea3ad90 100755 --- a/tcc-exporter +++ b/tcc-exporter @@ -16,8 +16,8 @@ from http.cookiejar import LWPCookieJar from http.server import HTTPServer, BaseHTTPRequestHandler from urllib.error import HTTPError -VERSION = '0.9.2' -CONFIG_FILE = 'persistent/config.yml' +VERSION = '0.9.3' +CONFIG_FILE = os.environ.get('TCC_CONFIG_FILE', 'persistent/config.yml') PREFIX = 'https://mytotalconnectcomfort.com/' # Set your TCC_LOGLEVEL to either the string or index number for your base logging level.