start timer early anyway

This commit is contained in:
AUTOMATIC1111 2023-07-22 12:21:05 +03:00
parent 491d42bb1c
commit 90eb731ff1
2 changed files with 1 additions and 3 deletions

View File

@ -1,6 +1,5 @@
from modules import launch_utils
args = launch_utils.args
python = launch_utils.python
git = launch_utils.git
@ -26,8 +25,6 @@ start = launch_utils.start
def main():
from modules import timer
timer.startup_timer.record("start")
if not args.skip_prepare_environment:
prepare_environment()

View File

@ -10,6 +10,7 @@ from functools import lru_cache
from modules import cmd_args, errors
from modules.paths_internal import script_path, extensions_dir
from modules import timer # noqa:F401
args, _ = cmd_args.parser.parse_known_args()