Skip to content

Commit

Permalink
cloud storage google-credentials with env var path
Browse files Browse the repository at this point in the history
  • Loading branch information
josancamon19 committed Apr 10, 2024
1 parent 1281818 commit b2fb61a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/cloud_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

from google.cloud import storage

storage_client = storage.Client.from_service_account_json('google-credentials.json')
storage_client = storage.Client.from_service_account_json(
os.getenv('GOOGLE_APPLICATION_CREDENTIALS', 'google-credentials.json'))
bucket_name = os.getenv('CLOUD_STORAGE_BUCKET_NAME')


Expand Down

0 comments on commit b2fb61a

Please sign in to comment.