title: os.chdir() to relative home directory (/home/usr/)
body: <p>Is there a way to use os.chdir() to go to relative user folder?</p>
  
  <p>I'm making a bash and the only issue I found is the <code>cd ~</code>, <code>arg[0]</code> is undefined since I'm using this cd functions:</p>
  
  <pre><code>def cd(args):
      os.chdir(args[0])
      return current_status
  </code></pre>
  
  <p>Which I want to change to</p>
  
  <pre><code>def cd(args):
      if args[0] == '~':
          os.chdir('/home/') 
  # Here I left it to /home/ since I don't know how 
  # to get the user's folder name
      else:
          os.chdir(args[0])
      return current_status
  </code></pre>