From 90e1c26f2bab6d6d7659e2ccf4a1dae4a60c677e Mon Sep 17 00:00:00 2001 From: vocx-fc Date: Mon, 27 Apr 2020 18:52:11 -0500 Subject: [PATCH] Arch: import the os module to find the paths --- src/Mod/Arch/ArchWindow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchWindow.py b/src/Mod/Arch/ArchWindow.py index 8c2029a505..a3051e6661 100644 --- a/src/Mod/Arch/ArchWindow.py +++ b/src/Mod/Arch/ArchWindow.py @@ -19,6 +19,8 @@ #* * #*************************************************************************** +import os + import FreeCAD,Draft,ArchComponent,DraftVecUtils,ArchCommands from FreeCAD import Units from FreeCAD import Vector @@ -771,7 +773,6 @@ class _CommandWindow: self.librarypresets = [] librarypath = FreeCAD.ParamGet('User parameter:Plugins/parts_library').GetString('destination','') if librarypath: - import os if os.path.exists(librarypath): for wtype in ["Windows","Doors"]: wdir = os.path.join(librarypath,"Architectural Parts",wtype)