title: How to properly create a pyinstaller hook, or maybe hidden import?
body: <p>I have two packages (say, <code>dataread</code> and <code>datainspector</code>) that were somehow not detected by PyInstaller. Because of this, the application terminates when the running application reaches the point where it needs to import modules from those packages.</p>
  
  <p>The easiest solution would be to copy <code>dataread</code> and <code>datainspector</code> into packaged app. But this will break the intention of packaging a binary version of the application.</p>
  
  <p>I've read about hidded imports and hook, and I think that both can solve the problem, but I am not sure of which one to use.</p>
  
  <p>Any suggestions?
  PS: both these packages may contain nested directories.</p>