title: FILE (.json) NOT FOUND
body: <p>This is my directory where i have activated a virtual environment:</p>
  
  <p><img src="https://i.stack.imgur.com/IkEk1.png" alt="The directory where I have activated a virtual environment"></p>
  
  <p>I'm working on a flask project to create a rest API, and I have a JSON credential file (google vision file), but when I run the code it says file not found even if it's in the same directory. I've activated a virtualenv for this particular project. <code>mainone.py</code> is the code I'm trying to run.</p>
  
  <p>This is the error I am getting:</p>
  
  <pre><code>"File {} was not found.".format(filename)
  google.auth.exceptions.DefaultCredentialsError: File date_scanner.json was not found. 
  </code></pre>
  
  <p>And this is the code block where I am using accessing the particular file:</p>
  
  <pre><code>from flask import Flask,request,jsonify
  import os,io,re,glob,base64
  from google.cloud import vision
  from google.cloud.vision import types
  from PIL import Image
  
  os.environ['GOOGLE_APPLICATION_CREDENTIALS']=r'date_scanner.json'
  client=vision.ImageAnnotatorClient() 
  </code></pre>