修复文件问题
This commit is contained in:
parent
6c24d5b201
commit
101aaa8172
|
|
@ -15,7 +15,7 @@ except ImportError:
|
||||||
# Fallback for older pydantic versions
|
# Fallback for older pydantic versions
|
||||||
from pydantic import BaseSettings, Field
|
from pydantic import BaseSettings, Field
|
||||||
|
|
||||||
|
project_root = Path(__file__).parent.parent
|
||||||
class Settings(BaseSettings):
|
class Settings(BaseSettings):
|
||||||
"""Application settings with environment variable support."""
|
"""Application settings with environment variable support."""
|
||||||
|
|
||||||
|
|
@ -25,10 +25,10 @@ class Settings(BaseSettings):
|
||||||
debug: bool = Field(default=False, env="DEBUG")
|
debug: bool = Field(default=False, env="DEBUG")
|
||||||
|
|
||||||
# Paths
|
# Paths
|
||||||
project_root: Path = Path(__file__).parent.parent
|
project_root: Path = project_root
|
||||||
temp_dir: Path = Field(default_factory=lambda: Path.home() / ".mixvideo" / "temp")
|
temp_dir: Path = Field(default_factory=lambda: project_root / ".mixvideo" / "temp")
|
||||||
cache_dir: Path = Field(default_factory=lambda: Path.home() / ".mixvideo" / "cache")
|
cache_dir: Path = Field(default_factory=lambda: project_root / ".mixvideo" / "cache")
|
||||||
projects_dir: Path = Field(default_factory=lambda: Path.home() / "MixVideoProjects")
|
projects_dir: Path = Field(default_factory=lambda: project_root / "MixVideoProjects")
|
||||||
|
|
||||||
# Video Processing
|
# Video Processing
|
||||||
max_video_resolution: str = "1920x1080"
|
max_video_resolution: str = "1920x1080"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue