mirror of
https://github.com/Ryujinx/Ryujinx-Mako.git
synced 2025-08-14 12:21:11 +00:00
Check if the required env vars aren't empty
This commit is contained in:
parent
98c9cd3ee5
commit
cf878fd360
|
@ -21,7 +21,7 @@ SCRIPT_NAME = NAME.lower().replace("-", "_")
|
|||
|
||||
# Check environment variables
|
||||
for key in ConfigKey:
|
||||
if key not in os.environ.keys():
|
||||
if key not in os.environ.keys() or len(os.environ[key]) == 0:
|
||||
raise KeyError(f"Required environment variable not set: {key}")
|
||||
|
||||
APP_ID = int(os.environ[ConfigKey.AppID])
|
||||
|
|
Loading…
Reference in a new issue