Skip to content

Commit

Permalink
Arch: Support user-defined profiles csv file
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jun 10, 2020
1 parent b2c72a2 commit d205316
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Mod/Arch/ArchProfile.py
Expand Up @@ -51,8 +51,10 @@ def QT_TRANSLATE_NOOP(ctxt,txt):

# 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():
Expand Down

0 comments on commit d205316

Please sign in to comment.