From 1a76a05e4a3613c64c313d04be57cc5214d7fd64 Mon Sep 17 00:00:00 2001 From: Jeremy Mack Wright Date: Wed, 12 Apr 2017 17:25:37 -0400 Subject: [PATCH] Removed some code that was breaking certain filenames. --- CadQuery/Gui/Command.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/CadQuery/Gui/Command.py b/CadQuery/Gui/Command.py index de8fe3d..d0ef171 100644 --- a/CadQuery/Gui/Command.py +++ b/CadQuery/Gui/Command.py @@ -119,27 +119,11 @@ class CadQueryExecuteScript: # Grab our code editor so we can interact with it cqCodePane = Shared.getActiveCodePane() - # Clear the old render before re-rendering - # Shared.clearActiveDocument() - # Save our code to a tempfile and render it tempFile = tempfile.NamedTemporaryFile(delete=False) tempFile.write(cqCodePane.toPlainText().encode('utf-8')) tempFile.close() - # docname = os.path.splitext(os.path.basename(cqCodePane.file.path))[0] - # - # # Make sure we replace any troublesome characters - # for ch in ['&', '#', '.', '-', '$', '%', ',', ' ']: - # if ch in docname: - # docname = docname.replace(ch, "") - # - # # If the matching 3D view has been closed, we need to open a new one - # try: - # FreeCAD.getDocument(docname) - # except: - # FreeCAD.newDocument(docname) - # We import this way because using execfile() causes non-standard script execution in some situations imp.load_source('temp_module', tempFile.name)