title: Python logging module is prepending C: drive to my log file path
body: <p>I'm trying to log a Python process to a network drive. I pass the path of the log file in when I initialize the logging, so my config file has this handler:</p>
  <pre><code>[handler_mainHandler]
  class=FileHandler
  level=DEBUG
  formatter=simpleFormatter
  args=('%(logfilename)s',)
  </code></pre>
  <p>and I initialize the logging like this:</p>
  <pre class="lang-py prettyprint-override"><code>logging.config.fileConfig(
      os.path.join(pathlib.Path(__file__).parent.resolve(), 'logging.conf'),
      disable_existing_loggers=False,
      defaults={'logfilename': r&quot;\\host\share\myfolder\log.txt&quot;}
  )
  </code></pre>
  <p>When I try to run this, it seems like the logging module is prepending my logfilename path with the C: drive for some reason, so I get the error:</p>
  <pre><code>FileNotFoundError: [Errno 2] No such file or directory: 'C:\\host\\share\\myfolder\\log.txt'
  </code></pre>
  <p>I've confirmed that the original folder (<code>\\host\share\myfolder</code>) exists and has the proper permissions to write. I'm also able to write files there without issue if I just use <code>with open(r&quot;\\host\share\myfolder\log.txt&quot;, &quot;w&quot;) as f: ...</code>.</p>