title: How can I change drives using python os?
body: <p>I'm trying to change the current directory from <code>C:</code> to <code>Y:</code>
  I tried:</p>
  
  <pre><code>import os
  os.chdir('Y:')
  </code></pre>
  
  <p>but I keep getting an error saying that it can't locate the drive.
  Essentially I'm looking for the equivalent of the</p>
  
  <pre><code>cd /d
  </code></pre>
  
  <p>command in cmd.</p>