title: python - numpy FileNotFoundError: [Errno 2] No such file or directory
body: <p>I have this code:</p>
  
  <pre><code>import os.path
  import numpy as np
  homedir=os.path.expanduser("~")
  pathset=os.path.join(homedir,"\Documents\School Life Diary\settings.npy")
  if not(os.path.exists(pathset)):
      ds={"ORE_MAX_GIORNATA":5}
      np.save(pathset, ds)
  </code></pre>
  
  <p>But the error that he gave me is:</p>
  
  <pre><code>FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Maicol\\Documents\\School Life Diary\\settings.npy'
  </code></pre>
  
  <p>How can I solve this? The folder isn't created...</p>
  
  <p>Thanks</p>