title: Importing csv from a subdirectory in Python
body: <p>My project has a bunch of csv files that may or may not be called based on user input. I'd like to store these files in a subdirectory to keep my project folder uncluttered. I'm utterly confused as to how to do this. Most of the resources I've dug up involve importing a module or package from a subdirectory rather than a basic data file.</p>
  
  <p>The line of code that imports my csv currently looks like: </p>
  
  <pre><code>target_doc = csv.reader(open('sample.csv', 'rU'), delimiter=",", quotechar='|')
  </code></pre>
  
  <p>I'm assuming a solution will involve setting up a path variable, using import os and import sys, and perhaps splitting this line multiple parts?</p>