FEM: solver frame work, move get custom dir to snake_case

This commit is contained in:
Bernd Hahnebach
2019-03-31 15:08:06 +02:00
committed by wmayer
parent 0ffa6de8b1
commit ef374e640f
2 changed files with 2 additions and 2 deletions

View File

@@ -193,7 +193,7 @@ def _getCustomDir(solver):
def _getCustomBase(solver):
path = settings.getCustomDir()
path = settings.get_custom_dir()
if not os.path.isdir(path):
raise DirectoryDoesNotExistError("Invalid path")
return path

View File

@@ -144,7 +144,7 @@ def get_write_comments(name):
# ******** working directory parameter ***********************************************************
def getCustomDir():
def get_custom_dir():
param_group = FreeCAD.ParamGet(_GENERAL_PARAM)
return param_group.GetString("CustomDirectoryPath")