title: How can I import all my python files in multiple folder hierarchy into a single pyinstaller executable?
body: <p>I am developing a PyQT based Windows Application. I have lot of folders with many python files. But when I try to create an executable with the pyinstaller python package,the dependencies of the files in the other folders could not be resolved.
  For Simplicity, this is my folder structure</p>
  
  <pre><code>gui
      -gui.py
      -main.py
  libs
      -testlibs.py
  utility
      -folderstructure.py
  </code></pre>
  
  <p>I have used the command <strong>pyinstaller main.py --onefile</strong>
  The problem is gui.py imports utility.folderstructure which couldnot be resolved after the exe is generated.</p>
  
  <p>The exe is throwing execption that utility cannot be found.</p>
  
  <p>I have added addition hook directory option. In that I have added a file named hook-gui.py with content hiddenimports=[".utility.folderstructure.*"]
  Now my folderstructure is</p>
  
  <pre><code>gui
      -gui.py
      -main.py
      -hook-gui.py
  libs
      -testlibs.py
  utility
      -folderstructure.py
  </code></pre>
  
  <p>But while running the command <strong>pyinstaller ----additional-hooks-dir=. main.py --onefile</strong></p>
  
  <p>INFO: Loading module hook <strong>hook-gui.py</strong>...
  WARNING: Hidden import <strong>.utility.folderstructure.*</strong> not found! 
  This particular error pops up.</p>
  
  <p>Could you tell where I am wrong?</p>