corelp.debug module

corelp.debug(file, new=True, *, project_index=2)[source]

This function will give and create the debug folder for a given python file.

Parameters:
  • file (str) – __file__ string in the current python file to be debugged.

  • new (bool) – True to create new folder at each call.

  • project_index (int) – Index of parent of file containing project name, by default 2 : projectlp / modules / module_LP / file.py.

Returns:

debug_folder – Path to the debug folder.

Return type:

Path

Examples

>>> from corelp import debug
...
>>> debug_folder = debug(__file__)