|
|
@ -1,3 +1,5 @@ |
|
|
|
import os |
|
|
|
|
|
|
|
from pydantic import BaseModel, Extra |
|
|
|
from typing import List, Dict |
|
|
|
from pathlib import Path |
|
|
@ -34,7 +36,8 @@ FortuneThemesDict: Dict[str, List[str]] = { |
|
|
|
|
|
|
|
|
|
|
|
class PluginConfig(BaseModel, extra=Extra.ignore): |
|
|
|
fortune_path: Path = Path(__file__).parent / "resource" |
|
|
|
abs_path = os.path.abspath(__file__) |
|
|
|
fortune_path: Path = Path(abs_path).parent / "resource" |
|
|
|
|
|
|
|
|
|
|
|
class ThemesFlagConfig(BaseModel, extra=Extra.ignore): |
|
|
|