mirror of
https://github.com/tcsenpai/UWINE.git
synced 2025-06-04 18:45:21 +00:00
Also informative support if envfile isnt there
This commit is contained in:
parent
bf11b1e737
commit
ac006b900f
6
uwine
6
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user