Skip to content

Commit 3599c16

Browse files
committed
fix: import error
1 parent 7c1387e commit 3599c16

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

epub_browser/library.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import os
22
import tempfile
33
from datetime import datetime
4-
from processor import EPUBProcessor
4+
5+
from .processor import EPUBProcessor
56

67
class EPUBLibrary:
78
"""EPUB图书馆类,管理多本书籍"""

epub_browser/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
import os
99
import sys
1010
import argparse
11-
1211
from tqdm import tqdm
13-
from server import EPUBServer
14-
from library import EPUBLibrary
12+
13+
from .server import EPUBServer
14+
from .library import EPUBLibrary
1515

1616
def main():
1717
parser = argparse.ArgumentParser(description='EPUB to Web Converter - Multi-book Support')

epub_browser/processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
from datetime import datetime
21
import os
32
import zipfile
43
import tempfile
54
import shutil
65
import xml.etree.ElementTree as ET
76
import re
87
import hashlib
8+
from datetime import datetime
99

1010
class EPUBProcessor:
1111
"""处理EPUB文件的类"""

epub_browser/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import webbrowser
44
from http.server import HTTPServer, SimpleHTTPRequestHandler
55
from urllib.parse import urlparse
6-
from library import EPUBLibrary
6+
from .library import EPUBLibrary
77

88
class EPUBHTTPRequestHandler(SimpleHTTPRequestHandler):
99
"""自定义HTTP请求处理器"""

0 commit comments

Comments
 (0)