title: cx_freeze - How to change reference to lib
body: <p>Building an Python application with cx_freeze.</p>
  
  <pre><code>from cx_Freeze import setup, Executable
  _packages = []
  _excludes = []
  _include_files = [...]
  
  buildOptions = dict(packages = _packages, enter code here`excludes = _excludes, include_files = _include_files, build_exe = '&lt;app name&gt;')
  
  setup(name = '&lt;app name&gt;',
     version = &lt;version&gt;,
     description = '&lt;description&gt;',
     options = dict(build_exe = buildOptions),
        executables = [Executable('&lt;app name&gt;.py',
           targetName = '&lt;app name&gt;',
            icon = '&lt;app name&gt;.png')])
  </code></pre>
  
  <p>Attempting to install an application build with cx_freeze on Linux in /usr/bin/ with application resources in /usr/share/.</p>
  
  <p>Of course this results in:</p>
  
  <pre><code>Fatal Python error: Py_Initialize: Unable to get the locale encoding
  ModuleNotFoundError: No module name 'encodings'
  
  Current thread 0x0... (most recent call first):...
  </code></pre>
  
  <p>I <em>think</em> I need to set/change the default location of the lib folder but I have been unable to figure out how to do that. It's entirely possible that I might be on the completely wrong track.</p>
  
  <p>I'm trying to avoid using bbfreeze.</p>