title: Inherit other file.py globals
body: <p>how do you inherit globals from other .py file?</p>
  
  <p>Example:<br>
  globals.py</p>
  
  <pre><code>test = 'testValue'
  </code></pre>
  
  <p>index.py  </p>
  
  <pre><code>from globals import *
  
  def setGlobals():
      global test
      test = 'new Value' # Setting new value to project global  
  
  setGlobals()
  </code></pre>
  
  <p>help.py</p>
  
  <pre><code>from globals import *
  print test # Should print out 'new Value', but it prints 'testValue'
  </code></pre>
  
  <p>I wish to have one file full of constants and global variables that is set by another file and also used by other files. In this example I set new value to global variable <code>test</code> in <code>index.py</code> and wish to use new value in <code>help.py</code>. Am I using the wrong approach for python? Thank you.</p>
  
  <p>EDIT:
  Sequence of events is same as exampled, e.g. first I import, set new value and then try printing out newly set value from another file.</p>