mirror of
https://github.com/onyx-and-iris/q3rcon-tui.git
synced 2026-02-26 11:09:11 +00:00
upd dotenv file path
This commit is contained in:
parent
3fbac04756
commit
e87ca1d0e5
@ -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:
|
||||||
|
|
||||||
|
|||||||
@ -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_',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user