From c4b7d98b2f64b690f3c21a13e1ef269b3bc08c79 Mon Sep 17 00:00:00 2001 From: sliptonic Date: Fri, 12 May 2023 09:20:44 -0500 Subject: [PATCH 1/2] turn off logging --- src/Mod/Path/Path/Main/Gui/Sanity.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Mod/Path/Path/Main/Gui/Sanity.py b/src/Mod/Path/Path/Main/Gui/Sanity.py index a3ea454b5c..6ad2a53f74 100644 --- a/src/Mod/Path/Path/Main/Gui/Sanity.py +++ b/src/Mod/Path/Path/Main/Gui/Sanity.py @@ -28,12 +28,11 @@ Path projects. Ideally, the user could execute these utilities from an icon to make sure tools are selected and configured and defaults have been revised """ -from PySide import QtCore, QtGui +from PySide import QtGui import FreeCAD import FreeCADGui import Path import Path.Log -import PathScripts from collections import Counter from datetime import datetime import os @@ -43,7 +42,7 @@ from PySide.QtCore import QT_TRANSLATE_NOOP translate = FreeCAD.Qt.translate -if True: +if False: Path.Log.setLevel(Path.Log.Level.DEBUG, Path.Log.thisModule()) Path.Log.trackModule(Path.Log.thisModule()) else: From 5b2cb9ced63ff3167f23abe15586d31c1ab5cbdc Mon Sep 17 00:00:00 2001 From: sliptonic Date: Sat, 13 May 2023 10:30:37 -0500 Subject: [PATCH 2/2] Make Sanity not experimental --- src/Mod/Path/InitGui.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Mod/Path/InitGui.py b/src/Mod/Path/InitGui.py index 8abd9b258f..ce639bd0d7 100644 --- a/src/Mod/Path/InitGui.py +++ b/src/Mod/Path/InitGui.py @@ -92,7 +92,7 @@ class PathWorkbench(Workbench): Path.GuiInit.Startup() # build commands list - projcmdlist = ["Path_Job", "Path_Post"] + projcmdlist = ["Path_Job", "Path_Post", "Path_Sanity"] toolcmdlist = [ "Path_Inspect", "Path_Simulator", @@ -146,7 +146,6 @@ class PathWorkbench(Workbench): threedcmdgroup = threedopcmdlist if Path.Preferences.experimentalFeaturesEnabled(): - projcmdlist.append("Path_Sanity") prepcmdlist.append("Path_Shape") extracmdlist.extend(["Path_Area", "Path_Area_Workplane"]) specialcmdlist.append("Path_ThreadMilling")