Skip to content

Commit 8abb7cb

Browse files
committed
fix: shuil rm files
1 parent 65c065a commit 8abb7cb

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

epub_browser/library.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ def __init__(self, output_dir=None):
1616
# 创建基础目录
1717
if output_dir is not None:
1818
if os.path.exists(output_dir):
19-
try:
20-
# 如果存在则尝试删了再建
21-
shutil.rmtree(output_dir)
22-
os.mkdir(output_dir)
23-
except Exception:
24-
print(f"output_dir {output_dir} exists, try to recreate failed, please check.")
19+
# 如果存在 那就存在
2520
self.base_directory = output_dir
2621
else:
2722
try:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name="epub-browser", # 在PyPI上显示的项目名称
9-
version="1.2.7", # 初始版本号
9+
version="1.2.8", # 初始版本号
1010
author="dfface", # 作者名
1111
author_email="dfface@sina.com", # 作者邮箱
1212
keywords="epub reader html export browser convert calibre-web calibre kindle web server local",

0 commit comments

Comments
 (0)