Arch: Support user-defined profiles csv file

This commit is contained in:
Yorik van Havre
2020-06-10 15:38:29 +02:00
committed by GitHub
parent b2c72a212d
commit d205316a82

View File

@@ -51,8 +51,10 @@ else:
# Presets in the form: Class, Name, Profile type, [profile data]
# Search for profiles.csv in data/Mod/Arch/Presets and in the same folder as this file
# and in the user path
profilefiles = [os.path.join(FreeCAD.getResourceDir(),"Mod","Arch","Presets","profiles.csv"),
os.path.join(os.path.dirname(__file__),"Presets","profiles.csv")]
os.path.join(os.path.dirname(__file__),"Presets","profiles.csv"),
os.path.join(FreeCAD.getUserAppDataDir(),"Arch","profiles.csv")]
def readPresets():