From a9f36af40d4c3a00bb2336852d0db329f3b5905e Mon Sep 17 00:00:00 2001 From: Chris Pham Date: Thu, 18 Jan 2018 10:53:39 -0800 Subject: [PATCH] Read key from file --- ground_station/resources/core/mapping.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ground_station/resources/core/mapping.py b/ground_station/resources/core/mapping.py index cae06d2..8a9531d 100644 --- a/ground_station/resources/core/mapping.py +++ b/ground_station/resources/core/mapping.py @@ -12,7 +12,9 @@ import time ##################################### # Constants ##################################### -_KEY = +fp = open('key', w) +_KEY = fp.read().rstrip() +fp.close() # Number of pixels in half the earth's circumference at zoom = 21 _EARTHPIX = 268435456