title: Create plugins for python standalone executables
body: <p>how to create a good plugin engine for standalone executables created with pyInstaller, py2exe or similar tools? </p>
  
  <p>I do not have experience with py2exe, but pyInstaller uses an import hook to import packages from it's compressed repository. Of course I am able to import dynamically another compressed repository created with pyInstaller and execute the code - this may be a simple plugin engine.</p>
  
  <p>Problems appears when the plugin (this what is imported dynamically) uses a library that is not present in original repository (never imported). This is because import hook is for the original application and searches for packages in original repository - not the one imported later (plugin package repository). </p>
  
  <p>Is there an easy way to solve this problem? Maybe there exist such engine?</p>