title: Error with double backslash in Windows path in Python
body: <p>I want to work with paths in Windows in Python 3.3, but I have an error: </p>
  
  <blockquote>
    <p>FileNotFoundError: [Errno 2] No such file or directory:
      'E:\\dir\\.project'</p>
  </blockquote>
  
  <p>The problem is the double backslash. I read the solution using r.</p>
  
  <pre><code>def f(dir_from):
      list_of_directory = os.listdir(dir_from)
      for element in list_of_directory:
          if os.path.isfile(os.path.join(dir_from, element)):
              open(os.path.join(dir_from, element))
  
  f(r'E:\\dir')
  </code></pre>
  
  <p>I have this error again</p>
  
  <blockquote>
    <p>FileNotFoundError: [Errno 2] No such file or directory:
      'E:\\dir\\.project'</p>
  </blockquote>
  
  <p><code>os.path.normpath(path)</code> doesn't solve my problem.</p>
  
  <p>What am I doing wrong?</p>