title: Batch file not receiving the ERRORLEVEL from the python script it launches
body: <p>I have a batch file running a python script.<br>
  This python script always ends using <code>sys.exit(code)</code> no matter what, with code being an error code.<br>
  The batch file doesn't get my error code and instead always reads 0 with the following:</p>
  
  <pre><code>..\..\STS\Python\python.exe Version_code_ID.py %*  
  echo Error level = %ERRORLEVEL%
  </code></pre>
  
  <p>This instalation of python is in 3.7.1.<br>
  I know for sure my python code exited with other codes than 0 thanks to my logger (and me voluntarily causing errors for testing purpose).<br>
  For example I had it exit with 1 and 12, both attempts resulting in getting 0 in the batch.</p>
  
  <p>Just in case, here is also the python function I use to exit:</p>
  
  <pre><code>def exit(code):
      if(code &gt; 0 ):
          log.error("The computing module will shutdown with the following error code : "+str(code))
      elif(code == 0):
          log.info("Execution sucessfull")
      log.info("STOP of VERSION_CODE_ID Computing Module")
      log.removeHandler(stream_handler)
      log.removeHandler(file_handler)
      stream_handler.close()
      file_handler.close()
      sys.exit(code)
  </code></pre>
  
  <p>log is just the name of my logging.handlers logger.</p>
  
  <p>Any idea what might be causing this problem?</p>