title: Python script from batch file won't run in task scheduler
body: <p>Hi folks so I got the following problem,</p>
  
  <p>I have the following code in a batch file:
  <code> ..\python-2.7.10.amd64\python.exe ./bin/bla.py ./conf/config.conf > ./logs/output.txt </code></p>
  
  <p>This works like a charme by double clicking the batch. Next my plan was to automate the call of this batch by adding it to the task scheduler in windows. So I changed all the relative paths to absolute paths:</p>
  
  <p><code> D:\path\to\python-2.7.10.amd64\python.exe D:\path\to\bin\bla.py D:\path\to\conf\config.conf > D:\path\to\logs\output.txt </code></p>
  
  <p>This also still works by double clicking the batch file.</p>
  
  <p>So my next step was adding the batch to the task scheduler but when I run it from there I get this error message:</p>
  
  <p><code> Traceback (most recent call last): File &quot;D:\path\to\bin\bla.py&quot;, line 159, in logging.config.fileConfig(logFile) File &quot;D:\path\to\python-2.7.10.amd64\lib\logging\confi eConfig formatters = _create_formatters(cp) File &quot;D:\path\to\python-2.7.10.amd64\lib\logging\confi reate_formatters flist = cp.get(&quot;formatters&quot;, &quot;keys&quot;) File &quot;D:\path\to\python-2.7.10.amd64\lib\ConfigParser. raise NoSectionError(section) ConfigParser.NoSectionError: No section: 'formatters' </code></p>
  
  <p>So for some reason the python script can't find the conf file by the absolute path I think but I don't understand why. I also tried it with the relative paths in the task scheduler it obviously also doesn't work.</p>
  
  <p>Does anyone of you have a clue why it works straight from the batch but not from the task scheduler ?</p>