byzh-core 0.0.3.1__tar.gz → 0.0.4.0__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.
Files changed (34) hide show
  1. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/PKG-INFO +1 -1
  2. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/Barchive/archive.py +6 -1
  3. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/__init__.py +1 -1
  4. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core.egg-info/PKG-INFO +1 -1
  5. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/LICENSE +0 -0
  6. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/README.md +0 -0
  7. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/B_os.py +0 -0
  8. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/Barchive/__init__.py +0 -0
  9. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/Btable/__init__.py +0 -0
  10. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/Btable/auto_table.py +0 -0
  11. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/Bterminal/__init__.py +0 -0
  12. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/Bterminal/cmd.py +0 -0
  13. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/Btqdm/__init__.py +0 -0
  14. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/Btqdm/my_tqdm.py +0 -0
  15. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/Butils/__init__.py +0 -0
  16. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/Butils/decorator.py +0 -0
  17. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/Butils/text_style.py +0 -0
  18. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/Butils/timer.py +0 -0
  19. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/Bwriter/__init__.py +0 -0
  20. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/Bwriter/writer.py +0 -0
  21. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/__main__.py +0 -0
  22. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/obsolete/Bconfig/__init__.py +0 -0
  23. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/obsolete/Bconfig/config.py +0 -0
  24. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/obsolete/__init__.py +0 -0
  25. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/obsolete/auto_table.py +0 -0
  26. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/obsolete/row_table.py +0 -0
  27. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core/obsolete/xy_table.py +0 -0
  28. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core.egg-info/SOURCES.txt +0 -0
  29. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core.egg-info/dependency_links.txt +0 -0
  30. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core.egg-info/entry_points.txt +0 -0
  31. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core.egg-info/requires.txt +0 -0
  32. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/byzh_core.egg-info/top_level.txt +0 -0
  33. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/setup.cfg +0 -0
  34. {byzh_core-0.0.3.1 → byzh_core-0.0.4.0}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: byzh_core
3
- Version: 0.0.3.1
3
+ Version: 0.0.4.0
4
4
  Summary: byzh_core是byzh系列的核心库,包含了一些常用的工具函数和类。
5
5
  Author: byzh_rc
6
6
  License: MIT
@@ -42,7 +42,12 @@ def b_archive_zip(
42
42
  :param contain_empty_folder: 是否包含空文件夹
43
43
  :return:
44
44
  '''
45
- output_path = source_path + '.zip' if output_path is None else output_path
45
+ if output_path is None:
46
+ if os.path.isdir(source_path):
47
+ output_path = source_path + '.zip'
48
+ else:
49
+ output_path = os.path.splitext(source_path)[0] + '.zip'
50
+
46
51
  if os.path.exists(output_path):
47
52
  print(f"检测到{output_path}已存在, 将在3秒后删除...")
48
53
  time.sleep(3)
@@ -2,4 +2,4 @@
2
2
  # class 以"B_"开头
3
3
  # function 以"b_"开头
4
4
 
5
- __version__ = '0.0.3.1'
5
+ __version__ = '0.0.4.0'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: byzh_core
3
- Version: 0.0.3.1
3
+ Version: 0.0.4.0
4
4
  Summary: byzh_core是byzh系列的核心库,包含了一些常用的工具函数和类。
5
5
  Author: byzh_rc
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes