title: Setting a working folder to where my script lives in Python
body: <p>I was looking for an easy way to set a working folder at the beginning of my script to avoid having to change it each time I run my script from another machine. Sorry if it is silly but I can't find an answer without having to dive deeply into the sea of weird functions - and I don't know how to swim.</p>
  
  <p>I would use it to save all images to the same specific folder.</p>
  
  <p>My take:</p>
  
  <pre><code>#import stuff
  filepath=raw_input('Provide the working directory: ')
  #do stuff
  plt.savefig(filepath+'\\image.jpg', dpi=2000,bbox='tight')
  </code></pre>
  
  <p><strong>EDIT</strong>
  I have a number of files to save in one specific directory, the same where my script lives. But it is specified like this: <code>C:\\Users\\User\\Desktop\\N_Scripts</code> and it is on my own pc, but I oftentimes work on a different machine. How to preset the directory where all my images go to at the beginning of my script with something like <code>raw_input</code>?</p>
  
  <p>Thank you for your help!</p>