comfy_fm24_newgens/lib/general.py
2025-09-23 14:25:59 +01:00

9 lines
309 B
Python

import configparser
def list_profiles(cfg_file):
"""List all available profiles from config file"""
config = configparser.ConfigParser()
config.read(cfg_file)
profiles = [section.split(':', 1)[1] for section in config.sections() if section.startswith('profile:')]
return profiles