title: Flask [Errno 2] No such file or directory:
body: <p>I have a flask app which uses a json file to store some config data. That .json file stores at the same location(directory) as the flask app file(app.py) is located. This flask app works fine in the local machine. But when I deploy to a live server (Ubuntu VPS), I'm getting a WSGI error says that </p>
  
  <pre><code>FileNotFoundError: [Errno 2] No such file or directory: 'config.json'
  </code></pre>
  
  <p>my code is for the .json file as follows</p>
  
  <pre><code>from flask import Flask, render_template, request
  from flask_sqlalchemy import SQLAlchemy
  import json
  import random
  
  with open('config.json', 'r') as c:
      par = json.load(c)["par"]
  </code></pre>
  
  <p>What is the wrong with this and how to fix ?</p>