title: setting batch variables using python
body: <p>Python seems to process my attempt :</p>
  
  <pre><code>subprocess.call(['set' , 'logfile=cat'], shell=True)
  </code></pre>
  
  <p>It returns no errors. However when I try using logfile as a variable or do <code>%logfile%</code>, it doesn't seem to have set <code>logfile</code> as anything. How does one make batch variables from within a python script?</p>
  
  <p>What I am attempting to do with this is: I have a batch script that sequentially runs several python scripts. I wanted to set a variable from within one of my python scripts that would persist throughout my batch script.</p>