Skip to content

config.py: do not evaluate defaults on config.add - #1370

Open
kba wants to merge 1 commit into
masterfrom
config-do-not-evaluate-default-on-add
Open

kba wants to merge 1 commit into
masterfrom
config-do-not-evaluate-default-on-add

Conversation

@kba

@kba kba commented Oct 16, 2026

Copy link
Copy Markdown
Member

Background: made /tmp read-only to track down spurious non-logs data (it was the Magick pixel cache BTW).
This leads to failure on module-level because gettempdir() won't return writeable directory.

API docs will contain placeholders but --help output should still work as before.

Background: made /tmp read-only to track down spurious non-logs data (it
was the Magick pixel cache BTW).
This leads to failure on module-level because gettempdir() won't return
writeable directory.

API docs will contain placeholders but --help output should still work
as before.

@bertsky bertsky left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable.

Not sure if the idea presented in #1336 would eventually run counter to that. (If we parse and validate settings already after module init, then how to deal with callable defaults?)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants