fix: prestartup_script.py

- don't forget prestartup_script's config isn't relies on manager_core. they are string not a bool...

improve: scanner.py - parallel github_stat scan
This commit is contained in:
Dr.Lt.Data
2024-05-14 00:23:33 +09:00
parent c82f80252f
commit 24a4152a9a
4 changed files with 1087 additions and 1119 deletions

View File

@@ -49,7 +49,7 @@ def check_file_logging():
config.read(config_path)
default_conf = config['default']
if 'file_logging' in default_conf and not default_conf['file_logging']:
if 'file_logging' in default_conf and default_conf['file_logging'].lower() == 'false':
enable_file_logging = False
except Exception:
pass
@@ -364,7 +364,7 @@ def check_bypass_ssl():
config.read(config_path)
default_conf = config['default']
if 'bypass_ssl' in default_conf and default_conf['bypass_ssl']:
if 'bypass_ssl' in default_conf and default_conf['bypass_ssl'].lower() == 'true':
print(f"[ComfyUI-Manager] WARN: Unsafe - SSL verification bypass option is Enabled. (see ComfyUI-Manager/config.ini)")
ssl._create_default_https_context = ssl._create_unverified_context # SSL certificate error fix.
except Exception:
@@ -586,7 +586,7 @@ def check_windows_event_loop_policy():
config.read(config_path)
default_conf = config['default']
if 'windows_selector_event_loop_policy' in default_conf and default_conf['windows_selector_event_loop_policy']:
if 'windows_selector_event_loop_policy' in default_conf and default_conf['windows_selector_event_loop_policy'].lower() == 'true':
try:
import asyncio
import asyncio.windows_events