dirs
๐ค AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
flavor.config.dirs
¶
XDG-compliant config directory resolution for Flavor.
Functions¶
get_config_dir
¶
Get the user-level config directory for Flavor.
Uses XDG Base Directory specification: - FLAVOR_CONFIG_DIR environment variable if set - XDG_CONFIG_HOME/flavor if XDG_CONFIG_HOME is set - ~/.config/flavor by default
Source code in flavor/config/dirs.py
get_policy_file
¶
Get the policy file path for Flavor.
Returns the path to policy.json in the appropriate config directory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
system
|
bool
|
If True, return the system-level policy file. If False (default), return the user-level policy file. |
False
|
Source code in flavor/config/dirs.py
get_system_config_dir
¶
Get the system-level config directory for Flavor.
- Linux/macOS: /etc/flavor
- Windows: %PROGRAMDATA%\flavor
Source code in flavor/config/dirs.py
get_trusted_keys_dir
¶
Get the trusted keys directory for Flavor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
system
|
bool
|
If True, return the system-level trusted keys directory. If False (default), check FLAVOR_TRUSTED_KEYS_DIR env var first, then fall back to get_config_dir() / "trusted-keys". |
False
|