title: Global variables across multiple files in python
body: <p>I have a modules.py file :</p>
  
  <pre><code>global dns_server_ip
  def SetVnetGlobalParameters():
      dns_server_ip = '192.168.3.120'
  </code></pre>
  
  <p>And I’m importing this file in say abc.py file</p>
  
  <pre><code>from modules import *
  SetVnetGlobalParameters()
  print(dns_server_ip)
  </code></pre>
  
  <p>But ‘dns_server_ip’ is still not accessible.</p>
  
  <p>I want to set global parameters through Function only. Any help would be greatly appreciated!
  Thanks..</p>