From 8ceadc45f3787c787eea107e2b5b7e613e604316 Mon Sep 17 00:00:00 2001 From: jdegenstein Date: Tue, 20 Sep 2022 08:28:47 -0500 Subject: [PATCH] Import logbook outside of prepare_console function --- cq_editor/main_window.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cq_editor/main_window.py b/cq_editor/main_window.py index 33dc32a..d578ca8 100644 --- a/cq_editor/main_window.py +++ b/cq_editor/main_window.py @@ -1,7 +1,7 @@ import sys from PyQt5.QtWidgets import (QLabel, QMainWindow, QToolBar, QDockWidget, QAction) - +from logbook import Logger import cadquery as cq from .widgets.editor import Editor @@ -290,7 +290,6 @@ class MainWindow(QMainWindow,MainMixin): def prepare_console(self): - from logbook import Logger console = self.components['console'] obj_tree = self.components['object_tree']