From 39ca1cd3256c69d8efb19ab3640750e2cd3676f9 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sat, 27 Oct 2018 23:54:37 +0200 Subject: [PATCH] wwo key is in ~/.wwo.key --- lib/globals.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/globals.py b/lib/globals.py index 6d4a130..7412b8c 100644 --- a/lib/globals.py +++ b/lib/globals.py @@ -64,6 +64,10 @@ _IP2LOCATION_KEY_FILE = os.environ['HOME'] + '/.ip2location.key' if os.path.exists(_IP2LOCATION_KEY_FILE): IP2LOCATION_KEY = open(_IP2LOCATION_KEY_FILE, 'r').read().strip() +_WWO_KEY_FILE = os.environ['HOME'] + '/.wwo.key' +if os.path.exists(_WWO_KEY_FILE): + WWO_KEY = open(_WWO_KEY_FILE, 'r').read().strip() + def error(text): "log error `text` and raise a RuntimeError exception"