From b5810383f37c0742110912c42c3510b4b7c5b244 Mon Sep 17 00:00:00 2001 From: Alexander Munch-Hansen Date: Tue, 29 Dec 2020 20:50:10 +0100 Subject: [PATCH] Fixed path to key --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 98666de..122c6f8 100644 --- a/main.py +++ b/main.py @@ -7,6 +7,7 @@ from firebase_admin import credentials from firebase_admin import firestore parser = argparse.ArgumentParser(description="Rubbish front for google cloud firestore API") + parser.add_argument('--source_file', action='store', dest='source_file', type=str, required=True, help='which file to read from') @@ -19,7 +20,7 @@ parser.add_argument('--project_id', action='store', dest='project_id', args = parser.parse_args() -os.environ["GOOGLE_APPLICATION_CREDENTIALS"]="/Users/alexandermunch-hansen/projects/Python/cloud_firestore/navedu-admin-key.json" +os.environ["GOOGLE_APPLICATION_CREDENTIALS"]="navedu-admin-key.json" def take_huge_file(long_ass_string: str):