title: How to update Config File on while loop and get value from different script at same time?
body: <p>Here is the scenario, I have two scripts lets say abc.py and xyz.py</p>
  
  <p>using abc.py I want to update config file every other second. Here is the sample code.</p>
  
  <p><strong>ABC.PY</strong></p>
  
  <pre class="lang-py prettyprint-override"><code>while True:
      cfgfile=config.read("config.ini")
      config.set('section','option',Value)
      with open('config.ini', 'w') as configfile:    
          config.write(configfile)
      time.sleep(1)
  </code></pre>
  
  <p>On Xyz.py I want to fetch the values from config.ini. 
  my code on <strong>XYZ.PY</strong></p>
  
  <pre class="lang-py prettyprint-override"><code>import configparser
  
  file = input("Enter the file name: ")
  config = configparser.ConfigParser()
  cfgfile = config.read("config.ini")
  values = config.get(file, 'option')
  print(values)
  </code></pre>
  
  <p>But the problem is, the <strong>ABC.py</strong> is only updating the config file once! That means it is updating the file only on First While loop. It isn't updating the config file every second, as I thought it would. </p>