Initial project baseline
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user