mirror of
https://github.com/karl0ss/comfy_fm24_newgens.git
synced 2025-10-03 06:40:06 +01:00
9 lines
309 B
Python
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 |