Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
8116938e83 | |||
0af753ea1f |
2 changed files with 4 additions and 3 deletions
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "srtify"
|
name = "srtify"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
description = "CLI tool for translating SRT files using Gemini AI"
|
description = "CLI tool for translating SRT files using Gemini AI"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
import json
|
import json
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from platformdirs import user_documents_path
|
||||||
from typing import Tuple, Optional
|
from typing import Tuple, Optional
|
||||||
from srtify.core.models import AppSettings, ApiConfig, DirectoryConfig, TranslationConfig
|
from srtify.core.models import AppSettings, ApiConfig, DirectoryConfig, TranslationConfig
|
||||||
from srtify.utils.paths import get_config_path
|
from srtify.utils.paths import get_config_path
|
||||||
|
|
||||||
|
|
||||||
home_dir = Path.home()
|
home_dir = Path.home()
|
||||||
DEFAULT_INPUT_DIR = str(home_dir / "Documents" / "Subtitles")
|
DEFAULT_INPUT_DIR = str(user_documents_path() / "Subtitles")
|
||||||
DEFAULT_OUTPUT_DIR = str(home_dir / "Documents" / "Subtitles" / "Translated")
|
DEFAULT_OUTPUT_DIR = str(user_documents_path() / "Subtitles" / "Translated")
|
||||||
|
|
||||||
|
|
||||||
class SettingsManager:
|
class SettingsManager:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue