generate_configs

lib.config.config.generate_configs(force: bool = False) None

Generate config files if they don’t exist.

This script is run prior to anything being set up, so don’t use logging Generates the default config files for plugins in the faceswap config folder

Logic:
  • Scan the plugins path for files named <parent_folder>_config.py>

  • Import the discovered module and look for instances of FaceswapConfig

  • If exists initialize the class

Parameters:

force (bool) – Force the loading of all plugin configs even if their .ini files pre-exist

Return type:

None