lezargus.terminate module

lezargus.terminate module#

Module, file, and data termination routines of Lezargus.

Everything and anything which terminates Lezargus is done here. We do the opposite of initialize.py, cleaning up after ourselves.

lezargus.terminate.terminate(*args: tuple, **kwargs: object) None[source]#

Terminate the Lezargus module and all its parts, cleaning up.

The termination function, breaking down what we created and initialized and cleaning up after ourselves.

Parameters:
  • *args (tuple) – Positional arguments. There should be no positional arguments. This serves to catch them.

  • **kwargs (dict) – Keyword arguments to be passed to all other initialization functions.

Return type:

None

lezargus.terminate.terminate_temporary_directory(*args: tuple, **kwargs: Any) None[source]#

Terminate the temporary directory.

We remove the temporary directory based on the configured paths.

Parameters:
  • *args (tuple) – Positional arguments. There should be no positional arguments. This serves to catch them.

  • **kwargs (dict) – A catch-all keyword argument, used to catch arguments which are not relevant or are otherwise passed to other internal functions.

Return type:

None