From a3e5931fd67ace2fd66c004ae4b248f4076adeba Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Tue, 4 Oct 2022 19:57:35 +0530 Subject: [PATCH] Project root check in dev script --- installer/developer/enable_dev_mode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/developer/enable_dev_mode.py b/installer/developer/enable_dev_mode.py index 5666c48d..68f4488b 100644 --- a/installer/developer/enable_dev_mode.py +++ b/installer/developer/enable_dev_mode.py @@ -8,7 +8,7 @@ import shutil config_path = os.path.join('config.json') -if not os.path.exists('installer') or not os.path.exists('ui') or not os.path.exists('engine'): +if not os.path.exists('LICENSE'): print('Error: This script needs to be run from the root of the stable-diffusion-ui folder! Please cd to the correct folder, and run this again.') exit(1)