Переглянути джерело

avoid importing timer when it is not strictly needed

Jabasukuriputo Wang 2 роки тому
батько
коміт
33694baea1
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      launch.py

+ 2 - 1
launch.py

@@ -1,4 +1,4 @@
-from modules import launch_utils, timer
+from modules import launch_utils
 
 
 
 
 args = launch_utils.args
 args = launch_utils.args
@@ -26,6 +26,7 @@ start = launch_utils.start
 
 
 
 
 def main():
 def main():
+    from modules import timer
     timer.startup_timer.record("start")
     timer.startup_timer.record("start")
 
 
     if not args.skip_prepare_environment:
     if not args.skip_prepare_environment: