diff --git a/lib/globals.py b/lib/globals.py index fbe34b7..b8f25de 100644 --- a/lib/globals.py +++ b/lib/globals.py @@ -88,7 +88,9 @@ IP2LOCATION_KEY = None if os.path.exists(_IP2LOCATION_KEY_FILE): IP2LOCATION_KEY = open(_IP2LOCATION_KEY_FILE, 'r').read().strip() -_WWO_KEY_FILE = os.environ['HOME'] + '/.wwo.key' +_WWO_KEY_FILE = os.environ.get( + "WTTR_WWO_KEY_FILE", + os.environ['HOME'] + '/.wwo.key') WWO_KEY = "key-is-not-specified" if os.path.exists(_WWO_KEY_FILE): WWO_KEY = open(_WWO_KEY_FILE, 'r').read().strip()