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:
mod_files = [f for f in os.listdir(path)]:
for f in mod_files:
mod = importlib.import_module(mod_name)
How do I handle these files with Pyinstaller?