upd dotenv file path

This commit is contained in:
onyx-and-iris 2026-02-19 23:36:42 +00:00
parent 3fbac04756
commit e87ca1d0e5
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ q3rcon-tui --host=localhost --port=28960 --password=rconpassword
Store and load from dotenv files located at: Store and load from dotenv files located at:
- .env in the cwd - .env in the cwd
- user home directory / .config / rcon-tui / config.env - user home directory / .config / q3rcon-tui / config.env
example .env: example .env:

View File

@ -36,7 +36,7 @@ class Settings(BaseSettings):
model_config = SettingsConfigDict( model_config = SettingsConfigDict(
env_file=( env_file=(
'.env', '.env',
Path.home() / '.config' / 'rcon-tui' / 'config.env', Path.home() / '.config' / 'q3rcon-tui' / 'config.env',
), ),
env_file_encoding='utf-8', env_file_encoding='utf-8',
env_prefix='Q3RCON_TUI_', env_prefix='Q3RCON_TUI_',