title: Python 3.4 and Windows Shared File Paths
body: <p>I am trying to open a file in a shared network location</p>
  
  <pre><code>open('\\int\GroupData\ITProSup\Operations Support\REMGROUP.txt','+r')
  </code></pre>
  
  <p>Now this turns into</p>
  
  <pre><code>nemonics&gt;python main.py
  eback (most recent call last):
  le "main.py", line 41, in &lt;module&gt;
  sys.exit(main())
  le "main.py", line 36, in main
  insert_file_into_db(con_S104838,open('\\int\GroupData\ITProSup\Operations Su
  t\REMGROUP.txt','+r'))
  NotFoundError: [Errno 2] No such file or directory: '\\int\\GroupData\\ITPro
  \Operations Support\\REMGROUP.txt'
  </code></pre>
  
  <p>I have tried this thread <a href="https://stackoverflow.com/questions/7169845/using-python-how-can-i-access-a-shared-folder-on-windows-network">Using Python, how can I access a shared folder on windows network?</a> but it does note seem to work for me. I am running python 3.4.1 and its windows 2012 server.</p>
  
  <p>I have also tried using os.path <a href="https://docs.python.org/3.4/library/os.path.html#os.path.normpath" rel="nofollow noreferrer">https://docs.python.org/3.4/library/os.path.html#os.path.normpath</a> with not much luck</p>
  
  <pre><code>C:\mnemonics&gt;python main.py
  Traceback (most recent call last):
    File "main.py", line 41, in &lt;module&gt;
      sys.exit(main())
    File "main.py", line 36, in main
      insert_file_into_db(con_S104838, open(os.path.normpath('\\int\GroupData\ITPr
  oSup\Operations Support\REMGROUP.txt')))
  FileNotFoundError: [Errno 2] No such file or directory: '\\int\\GroupData\\ITPro
  Sup\\Operations Support\\REMGROUP.txt'
  
  C:\mnemonics&gt;python main.py
  Traceback (most recent call last):
    File "main.py", line 42, in &lt;module&gt;
      sys.exit(main())
    File "main.py", line 37, in main
      open(os.path.normcase('\\int\GroupData\ITProSup\Operations Support\REMGROUP.
  txt'),'+r'))
  FileNotFoundError: [Errno 2] No such file or directory: '\\int\\groupdata\\itpro
  sup\\operations support\\remgroup.txt'
  </code></pre>
  
  <p>Any help would be greatly appreciated</p>