title: set bash variable from python script
body: <p>i'm calling a python script inside my bash script and I was wondering if there is a simple way to set my bash variables within my python script.</p>
  
  <p>Example:</p>
  
  <p>My bash script:</p>
  
  <pre><code>#!/bin/bash
  
  someVar=""
  python3 /some/folder/pythonScript.py
  </code></pre>
  
  <p>My python script:</p>
  
  <pre><code>anotherVar="HelloWorld"
  </code></pre>
  
  <p>Is there a way I can set my someVar to the value of anotherVar? I was thinking of printing properties in a file inside the python script and then read them from my bash script but maybe there is another way. Also I don't know and don't think it makes any difference but I can name both variable with the same name (someVar/someVar instead of someVar/anotherVar)</p>