Project root check in dev script

This commit is contained in:
cmdr2 2022-10-04 19:57:35 +05:30
parent 0e3766838f
commit a3e5931fd6

View File

@ -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)