cleanup bigquery filenames to one spot
diff --git a/planetstack/hpc_wizard/query.py b/planetstack/hpc_wizard/query.py
index 4ddf4f6..874022e 100644
--- a/planetstack/hpc_wizard/query.py
+++ b/planetstack/hpc_wizard/query.py
@@ -17,6 +17,8 @@
from oauth2client.file import Storage
from oauth2client.tools import run_flow,run
+from bigquery_config import BIGQUERY_SECRETS_FN, BIGQUERY_CREDENTIALS_FN
+
"""
yum -y install python-httplib2
easy_install python_gflags
@@ -27,7 +29,7 @@
PROJECT_NUMBER = '549187599759'
try:
- FLOW = flow_from_clientsecrets('/opt/planetstack/hpc_wizard/client_secrets.json',
+ FLOW = flow_from_clientsecrets(BIGQUERY_SECRETS_FN,
scope='https://www.googleapis.com/auth/bigquery')
except:
print "exception while initializing bigquery flow"
@@ -60,7 +62,7 @@
return resp
def run_query(self, query):
- storage = Storage('/opt/planetstack/hpc_wizard/bigquery_credentials.dat')
+ storage = Storage(BIGQUERY_CREDENTIALS_FN)
credentials = storage.get()
if credentials is None or credentials.invalid: