title: I can't upload a file to google cloud using python script?
body: <p>I am trying the python script available on GCP reference  to upload file to google cloud storage but every time I run it I get the error of file not found for the json key credential file even though it is in the same directory as the python script. </p>
  
  <p>The error is :     </p>
  
  <blockquote>
    <p>File "c:\users\kundan\appdata\local\programs\python\python37-<br>
    32\lib\site- 
          packages\google\cloud\client.py", line 75, in from_service_account_json
            with io.open(json_credentials_path, "r", encoding="utf-8") as 
        json_fi:
          FileNotFoundError: [Errno 2] No such file or directory: 'key.json'</p>
  </blockquote>
  
  <p>The code is as follows:</p>
  
  <pre><code>from google.cloud import storage
  
  def upload_blob(bucket_name, source_file_name, destination_blob_name):
  
      storage_client = storage.Client.from_service_account_json(
      'key.json')
      bucket = storage_client.get_bucket(bucket_name)
      blob = bucket.blob(destination_blob_name)
  
      blob.upload_from_filename(source_file_name)
  
      print('File {} uploaded to {}.'.format(
          source_file_name,
          destination_blob_name))
  
  bucket='synersense_data'
  source_file_name='gcp.txt'
  destination_blob_name='prototype'
  
  upload_blob(bucket,source_file_name,destination_blob_name)
  </code></pre>