title: python: open a json file in a different directory?
body: <p>Here's my code:</p>
  
  <pre><code>import json    
  with open("json.items") as json_file:
          json_data = json.load(json_file)
  </code></pre>
  
  <p>It works fine when I move the json file into the same directory. However, I'm trying to get the json file from a different directory. How would I do that? This is what I have tried and its not working:</p>
  
  <pre><code>with open("/lowerfolder/json.items") as json_file:
  </code></pre>
  
  <p>Any help? Thanks</p>