title: Read the value from a file with Python
body: <p>My file contents:</p>
  
  <pre><code>NAME="A"
  VERSION="20190515231057-816a"
  VERSION_ID="2.0"
  BUILD_ID="16a438d965923ab62804cea4ba00"
  BUILDER_NAME="v1.0"
  BUILDER_VERSION="v1.0"
  </code></pre>
  
  <p>I need to read any data value, for example <code>BUILDER_VERSION</code> is value (v1.0). I tried following code however it gives error due to special characters. How can I fix the problem or please suggest different commands?</p>
  
  <pre><code>build_value = subprocess.check_output("sed -ne 's/BUILDER_VERSION=\([^]*\).*/\1/p' &lt; /etc/os-release", shell=True)
  </code></pre>