title: Can I load a python code in python and parse it as normal code lines?
body: <p>I would like to be able to separate some defines meant for configuration, from the script where I would like to use them.
  Ex:</p>
  
  <pre><code>## Config ##
  antPatHeader = {
  
      # Name
      "name": "Antenna_Pattern_Tables",
  
      # Version
      "major_version": 0,
      "minor_version": 0,
  
  }
  </code></pre>
  
  <p>Is there a streightforward way, like opening and reading files like</p>
  
  <pre><code>f = open(configFile, "r")  
  f.read()  
  f.close()
  </code></pre>
  
  <p>and then parsing them in the programm.</p>
  
  <p>What is the best way to separate code like one would do for constants from the executing script?</p>