byzh-core 0.0.2.3__py3-none-any.whl → 0.0.2.4__py3-none-any.whl
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.
- byzh_core/B_os.py +26 -0
- byzh_core/Btable/__init__.py +2 -4
- byzh_core/Btable/auto_table.py +344 -373
- byzh_core/Btable/obsolete/__init__.py +6 -0
- byzh_core/Btable/obsolete/auto_table.py +427 -0
- byzh_core/__init__.py +1 -1
- {byzh_core-0.0.2.3.dist-info → byzh_core-0.0.2.4.dist-info}/METADATA +1 -1
- {byzh_core-0.0.2.3.dist-info → byzh_core-0.0.2.4.dist-info}/RECORD +13 -13
- byzh_core/Btable/obsolete/b_auto_table.py +0 -321
- /byzh_core/Btable/{row_table.py → obsolete/row_table.py} +0 -0
- /byzh_core/Btable/{xy_table.py → obsolete/xy_table.py} +0 -0
- {byzh_core-0.0.2.3.dist-info → byzh_core-0.0.2.4.dist-info}/LICENSE +0 -0
- {byzh_core-0.0.2.3.dist-info → byzh_core-0.0.2.4.dist-info}/WHEEL +0 -0
- {byzh_core-0.0.2.3.dist-info → byzh_core-0.0.2.4.dist-info}/top_level.txt +0 -0
byzh_core/B_os.py
CHANGED
@@ -58,3 +58,29 @@ def rm(path):
|
|
58
58
|
if os.path.isfile(path):
|
59
59
|
os.remove(path)
|
60
60
|
|
61
|
+
def get_dirpaths_in_dir(root_dir_path, unwanted_dirname=['__pycache__']):
|
62
|
+
result = []
|
63
|
+
for root, dirs, files in os.walk(root_dir_path):
|
64
|
+
path = Path(root)
|
65
|
+
if path.name in unwanted_dirname:
|
66
|
+
continue
|
67
|
+
result.append(path)
|
68
|
+
|
69
|
+
result = result[1:]
|
70
|
+
|
71
|
+
return result
|
72
|
+
|
73
|
+
def get_filepaths_in_dir(root_dir_path, unwanted_name=[], unwanted_suffix=['.pyc']):
|
74
|
+
file_paths = []
|
75
|
+
for root, dirs, files in os.walk(root_dir_path):
|
76
|
+
for file in files:
|
77
|
+
file_path = os.path.join(root, file)
|
78
|
+
file_path = Path(file_path)
|
79
|
+
if file_path.name in unwanted_name or file_path.suffix in unwanted_suffix:
|
80
|
+
continue
|
81
|
+
file_paths.append(file_path)
|
82
|
+
return file_paths
|
83
|
+
|
84
|
+
if __name__ == '__main__':
|
85
|
+
print(get_dirpaths_in_dir(r'E:\byzh_workingplace\byzh-rc-to-pypi\uploadToPypi_core\byzh_core'))
|
86
|
+
print(get_filepaths_in_dir(r'E:\byzh_workingplace\byzh-rc-to-pypi\uploadToPypi_core\byzh_core'))
|
byzh_core/Btable/__init__.py
CHANGED