module

module(key: str, *subkeys: str, ensure_exists: bool = True) Module[source]

Return a module for the application.

Parameters:
  • key – The name of the module. No funny characters. The envvar <key>_HOME where key is uppercased is checked first before using the default home directory.

  • subkeys – A sequence of additional strings to join. If none are given, returns the directory for this module.

  • ensure_exists – Should all directories be created automatically? Defaults to true.

Returns:

The module object that manages getting and ensuring