From 14afe5890ab767c4db06d29741d971efc60f072a Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Wed, 20 Jan 2021 12:53:48 -0800 Subject: [PATCH] Added line with more specific instructions for credentails to tools/pubsub_message --- tools/pubsub_message_publish.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/pubsub_message_publish.py b/tools/pubsub_message_publish.py index c34e124..baad2a8 100644 --- a/tools/pubsub_message_publish.py +++ b/tools/pubsub_message_publish.py @@ -8,8 +8,9 @@ os.environ["GOOGLE_APPLICATION_CREDENTIALS"] except: print("setting GOOGLE_APPLICATION_CREDENTIALS env var") - os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "./credentials/as-dev-ian-0ef537352615.json" # mac - os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "c:\\auth_keys\\AP Bootcamp 2019 - Gord-gordsserviceaccount-9eb6a157db12.json" # windows + # TODO: uncomment the line that corresponds to your system + # os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "./credentials/as-dev-ian-0ef537352615.json" # mac + # os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "c:\\auth_keys\\AP Bootcamp 2019 - Gord-gordsserviceaccount-9eb6a157db12.json" # windows topic_name = "gafltnr-topic" # pubsub topic your CF is subscribed to project_id = "analyticspros.com:spotted-cinnamon-834" IS_TEST = False # set to False to backfill, True for unit testing