From ac006b900f505d967543e70e27f3005f5b64b76e Mon Sep 17 00:00:00 2001 From: tcsenpai Date: Sun, 25 Feb 2024 23:10:40 +0100 Subject: [PATCH] Also informative support if envfile isnt there --- uwine | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/uwine b/uwine index 0a3aacf..4620fed 100755 --- a/uwine +++ b/uwine @@ -71,7 +71,11 @@ print(args.ulwlgdir) # Loading the .env file if args.envfile: envfile = args.envfile -print("[*] Loading the .env file: " + envfile) +print("[*] Loading the env file: " + envfile) +# Which is mandatory +if not os.path.isfile(envfile): + print("[FATAL] env file not found: " + envfile + "\nTry to copy env.example to .env in your UWINE installation directory.") + exit(1) dotenv.load_dotenv(dotenv_path=envfile) # Ensuring we support either none or some customvars