title: pyinstaller: adding dynamically loaded modules
body: <p>I'm trying to use Pyinstaller to bundle a server written in Python3. Part of the server code was written in a way that some modules are dynamically loaded like this:</p>
  
  <pre><code>mod_files = [f for f in os.listdir(path)]:
  for f in mod_files:
     mod = importlib.import_module(mod_name)
  </code></pre>
  
  <p>How do I handle these files with Pyinstaller?</p>