Skip to content

weblate_permissions.py: AttributeError: module 'config' has no attribute 'Config'

We're getting notifications of broken runs of weblate_permissions.py --enforce:

Traceback (most recent call last):
  File "/scripts/weblate_permissions.py", line 603, in <module>
    commandline()
  File "/scripts/weblate_permissions.py", line 573, in commandline
    config = cfg.Config([pathlib.Path('.'+PERMISSIONS_NAME), path.with_name(PERMISSIONS_NAME), path.parent.with_name("config")/PERMISSIONS_NAME], "yaml")
	     ^^^^^^^^^^
AttributeError: module 'config' has no attribute 'Config'

/cc @hefee