title: pyinstaller importing/loading at runtime python code e.g. config.py
body: <p>I have a large project that has a large 'config.py' file and is turned into an executable with pyinstaller. Is it possible to compile the whole project, but leave / re-load / import this file at run time, and how?</p>
  
  <p>(I could move part of the contents to a json format, and alter the file's logic, then load the json file, but do not want to plus, its a big file that everyone has his own copy already...)</p>
  
  <p>a small part of what is in 'config.py' is:</p>
  
  <pre><code>import getpass
  username = getpass.getuser()
  data_files_dir = '/tmp/data'
  bindings = 'UC'
  if username.lower()=='nick':
     data_files_dir = '/tmp/data'
     ....
  ....
  </code></pre>
  
  <p>The only relevant question I found is <a href="https://stackoverflow.com/questions/15577659/python-pyinstaller-loading-files-after-exe-creation">this one</a>, but it seems to be asking for something much more extensive, plus the answer ('You are missing the point. Your script supposes to be an end product.') definitely does not fit my case...</p>