diff options
author | Aarni Koskela <akx@iki.fi> | 2024-01-04 17:13:36 +0000 |
---|---|---|
committer | Aarni Koskela <akx@iki.fi> | 2024-01-04 17:13:47 +0000 |
commit | 9805f35c6f3ef0b0fc4e3648aa3d6eddf0a907af (patch) | |
tree | b5463bcda127cec080a3b9cd8ebf3f72c3de6871 /modules/launch_utils.py | |
parent | f903b4dda36537b8fd5daec209f9f886adb104fc (diff) | |
download | stable-diffusion-webui-gfx803-9805f35c6f3ef0b0fc4e3648aa3d6eddf0a907af.tar.gz stable-diffusion-webui-gfx803-9805f35c6f3ef0b0fc4e3648aa3d6eddf0a907af.tar.bz2 stable-diffusion-webui-gfx803-9805f35c6f3ef0b0fc4e3648aa3d6eddf0a907af.zip |
Ensure GRADIO_ANALYTICS_ENABLED is set early enough
Diffstat (limited to 'modules/launch_utils.py')
-rw-r--r-- | modules/launch_utils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/launch_utils.py b/modules/launch_utils.py index 7ebdf0b4..c2a7ae93 100644 --- a/modules/launch_utils.py +++ b/modules/launch_utils.py @@ -27,8 +27,7 @@ dir_repos = "repositories" # Whether to default to printing command output
default_command_live = (os.environ.get('WEBUI_LAUNCH_LIVE_OUTPUT') == "1")
-if 'GRADIO_ANALYTICS_ENABLED' not in os.environ:
- os.environ['GRADIO_ANALYTICS_ENABLED'] = 'False'
+os.environ.setdefault('GRADIO_ANALYTICS_ENABLED', 'False')
def check_python_version():
|