Skip to content

How to specify command defaults in config file #534

Answered by jeertmans
Quaesius asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Quaesius, thanks for your questions!

First, the config file is not read globally, and it is currently only used to specify key bindings for the Qt player, here:

if config_path.exists():
try:
config = Config.from_file(config_path)
except ValidationError as e:
raise click.UsageError(str(e)) from None
else:
logger.debug("No configuration file found, using default configuration.")
config = Config()

To do so, we would need to traverse the folders' tree at runtime (see what Flake8 does PyCQA/flake8#498 (comment)), and load possible config files found.

Second, we nee…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Quaesius
Comment options

@jeertmans
Comment options

Answer selected by jeertmans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants