Arch: import the os module to find the paths

This commit is contained in:
vocx-fc
2020-04-27 18:52:11 -05:00
committed by Yorik van Havre
parent 8e9d6f8bae
commit 90e1c26f2b

View File

@@ -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)