title: Python pass a variable to another script
body: <p>I am new to python so my apologies in advance if the question is somewhat dumb or unrealistic.</p>
  <p>I have an internally developed tool that converts traces of an ECU to a human readable data with the help of some self-developed python packages that I don’t have access to.</p>
  <p>I want to “export” some signal values obtained in this tool (that I can store in a python list in the tool) to an external python script where I can do some additional processing. Something like this:
  inTool.py</p>
  <pre><code>#do some trace processing, get signal_values as a result 
  def when_done():
     start external python script and give it signal_values as input 
  </code></pre>
  <p>external_Script.py</p>
  <pre><code>#import signal_values from inTool.py and do some additional processing.
  </code></pre>
  <p>Is this doable?</p>
  <p>Reason: the tool cannot handle third-party packages well and often crashes. That is why solutions similar to <a href="https://stackoverflow.com/questions/1186789/what-is-the-best-way-to-call-a-script-from-another-script">this</a> don’t work for me .</p>
  <p>My last resort would probably be to write the values to a text file in the tool and read them out again in my script but I was wondering if there is a nicer way to do it. Thanks!</p>