corelp 1.0.20__tar.gz → 1.0.22__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {corelp-1.0.20 → corelp-1.0.22}/PKG-INFO +1 -1
- {corelp-1.0.20 → corelp-1.0.22}/pyproject.toml +1 -1
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/debug_LP/debug.py +4 -2
- {corelp-1.0.20 → corelp-1.0.22}/README.md +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/__init__.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/icon_pythonLP.ico +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/Path_LP/Path.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/Path_LP/__init__.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/Path_LP/test_Path.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/Section_LP/Section.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/Section_LP/__init__.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/Section_LP/test_Section.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/__init__.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/debug_LP/__init__.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/debug_LP/test_debug.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/folder_LP/__init__.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/folder_LP/folder.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/folder_LP/test_folder.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/getmodule_LP/__init__.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/getmodule_LP/getmodule.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/kwargsself_LP/__init__.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/kwargsself_LP/kwargsself.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/kwargsself_LP/test_kwargsself.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/main_LP/__init__.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/main_LP/main.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/main_LP/test_main.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/print_LP/__init__.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/print_LP/print.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/print_LP/test_print.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/prop_LP/__init__.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/prop_LP/prop.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/prop_LP/test_prop.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/rfrom_LP/__init__.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/rfrom_LP/rfrom.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/rfrom_LP/test_rfrom.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/selfkwargs_LP/__init__.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/selfkwargs_LP/selfkwargs.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/selfkwargs_LP/test_selfkwargs.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/test_LP/__init__.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/test_LP/test.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/test_LP/test_test.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/user_inputs_LP/__init__.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/user_inputs_LP/test_user_inputs.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules/user_inputs_LP/user_inputs.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/modules.json +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/py.typed +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/scripts/__init__.py +0 -0
- {corelp-1.0.20 → corelp-1.0.22}/src/corelp/scripts.json +0 -0
|
@@ -21,7 +21,7 @@ import os
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
# %% Function
|
|
24
|
-
def debug(file, new=True) :
|
|
24
|
+
def debug(file, new=True, *, project_index=2) :
|
|
25
25
|
'''
|
|
26
26
|
This function will give and create the debug folder for a given python file.
|
|
27
27
|
|
|
@@ -31,6 +31,8 @@ def debug(file, new=True) :
|
|
|
31
31
|
__file__ string in the current python file to be debugged.
|
|
32
32
|
new : bool
|
|
33
33
|
True to create new folder at each call.
|
|
34
|
+
project_index : int
|
|
35
|
+
Index of parent of file containing project name, by default 2 : projectlp / modules / module_LP / file.py.
|
|
34
36
|
|
|
35
37
|
Returns
|
|
36
38
|
-------
|
|
@@ -47,7 +49,7 @@ def debug(file, new=True) :
|
|
|
47
49
|
# Get paths
|
|
48
50
|
file = Path(file)
|
|
49
51
|
module_name = file.stem.replace("test_", "")
|
|
50
|
-
lib_name = file.parents[
|
|
52
|
+
lib_name = file.parents[project_index].name # lib_name / modules / module_LP / file.py
|
|
51
53
|
debug_parent = Path.home() / 'pythonLP/.debug'
|
|
52
54
|
debug_folder = debug_parent / f'{lib_name}_{module_name}'
|
|
53
55
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|