wwo key is in ~/.wwo.key
This commit is contained in:
parent
c10067fe89
commit
39ca1cd325
1 changed files with 4 additions and 0 deletions
|
|
@ -64,6 +64,10 @@ _IP2LOCATION_KEY_FILE = os.environ['HOME'] + '/.ip2location.key'
|
||||||
if os.path.exists(_IP2LOCATION_KEY_FILE):
|
if os.path.exists(_IP2LOCATION_KEY_FILE):
|
||||||
IP2LOCATION_KEY = open(_IP2LOCATION_KEY_FILE, 'r').read().strip()
|
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):
|
def error(text):
|
||||||
"log error `text` and raise a RuntimeError exception"
|
"log error `text` and raise a RuntimeError exception"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue