title: How to share variables across scripts in python?
body: <p>The following does not work</p>
  
  <p>one.py</p>
  
  <pre><code>import shared
  shared.value = 'Hello'
  raw_input('A cheap way to keep process alive..')
  </code></pre>
  
  <p>two.py</p>
  
  <pre><code>import shared
  print shared.value
  </code></pre>
  
  <p>run on two command lines as:</p>
  
  <pre><code>&gt;&gt;python one.py
  &gt;&gt;python two.py
  </code></pre>
  
  <p>(the second one gets an attribute error, rightly so).</p>
  
  <p>Is there a way to accomplish this, that is, share a variable between two scripts?</p>