16 lines
375 B
Python
16 lines
375 B
Python
import sys
|
|
|
|
from .paths import BASE_DIR
|
|
|
|
lib_path = str(BASE_DIR / "EfficientWordCloud")
|
|
if lib_path not in sys.path:
|
|
sys.path.insert(0, lib_path)
|
|
|
|
try:
|
|
from efficient_wordcloud import EfficientWordCloud
|
|
except ImportError:
|
|
print("错误: 找不到 EfficientWordCloud 库。请确保已编译并安装该库。")
|
|
sys.exit(1)
|
|
|
|
__all__ = ["EfficientWordCloud"]
|