title: How to pickle to a different folder on Linux?
body: <p>When I used Windows, this was my code:</p>
  
  <pre><code>save_documents = open("pickled_algos/documents.pickle", "wb")
  pickle.dump(documents, save_documents)
  save_documents.close()
  </code></pre>
  
  <p>And what it did is make a second folder called "pickled_algos" and saved it there. Now I'm using Ubuntu Linux and when I write that same code I get this error:</p>
  
  <pre><code>Traceback (most recent call last):
  File "PATH/sentimentProjectSaving.py", line 136, in &lt;module&gt;
  save_documents = open("pickled_algos/documents.pickle", "wb")
  FileNotFoundError: [Errno 2] No such file or directory: 'pickled_algos/documents.pickle'
  </code></pre>
  
  <p>How do I do the same thing I did in Windows, but on Linux?</p>
  
  <p>EDIT: When I remove "pickled_algos/" then it works, the again the problem is that is saves into the same folder where the python file is.</p>