mirror of
https://github.com/maubot/maubot
synced 2025-08-29 03:20:39 +00:00
Merge cc9963418f
into 905c91c285
This commit is contained in:
commit
e509e1c3fb
1 changed files with 7 additions and 1 deletions
|
@ -26,7 +26,13 @@ config: dict[str, Any] = {
|
|||
"aliases": {},
|
||||
"default_server": None,
|
||||
}
|
||||
configdir = os.environ.get("XDG_CONFIG_HOME", os.path.join(os.environ.get("HOME"), ".config"))
|
||||
home_dir = os.environ.get("HOME") or os.environ.get("USERPROFILE")
|
||||
if home_dir is None:
|
||||
raise EnvironmentError(
|
||||
"Neither HOME nor USERPROFILE environment variables are set."
|
||||
)
|
||||
|
||||
configdir = os.environ.get("XDG_CONFIG_HOME", os.path.join(home_dir, ".config"))
|
||||
|
||||
|
||||
def get_default_server() -> tuple[str | None, str | None]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue