evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / py / pyload-ng / declarative-default-user.patch
blob3c3e6f4ba724a5879306397d9c6b185ab03a3f42
1 diff --git a/src/pyload/core/__init__.py b/src/pyload/core/__init__.py
2 index 4324fc700..f7fcd66ec 100644
3 --- a/src/pyload/core/__init__.py
4 +++ b/src/pyload/core/__init__.py
5 @@ -46,8 +46,8 @@ class Exit(Exception):
6 # improve external scripts
7 class Core:
8 LOCALE_DOMAIN = APPID
9 - DEFAULT_USERNAME = APPID
10 - DEFAULT_PASSWORD = APPID
11 + DEFAULT_USERNAME = os.getenv("PYLOAD_DEFAULT_USERNAME", APPID)
12 + DEFAULT_PASSWORD = os.getenv("PYLOAD_DEFAULT_PASSWORD", APPID)
13 DEFAULT_DATADIR = os.path.join(
14 os.getenv("APPDATA") or USERHOMEDIR, "pyLoad" if os.name == "nt" else ".pyload"