mirror of
https://github.com/revanced/revanced-releases-api.git
synced 2025-04-30 14:34:28 +02:00
13 lines
248 B
Python
13 lines
248 B
Python
import tomllib as toml
|
|
|
|
def load_config() -> dict:
|
|
"""Loads the config.toml file.
|
|
|
|
Returns:
|
|
dict: the config.toml file as a dict
|
|
"""
|
|
|
|
with open('config.toml', 'rb') as config_file:
|
|
return toml.load(config_file)
|
|
|