Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CONF_GetSettingsPath: Create the global settings folder if required #2328

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions Packages/MIES/MIES_Configuration.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -369,19 +369,20 @@ static Function/S CONF_GetSettingsPath(variable type)

path = RemoveListItem(numItems - 1, path, ":")
path = RemoveListItem(numItems - 2, path, ":") + EXPCONFIG_SETTINGS_FOLDER + ":"
ASSERT(FolderExists(path), "Unable to resolve MIES Settings folder path. Is it present and readable in Packages\\Settings ?")

break
case CONF_AUTO_LOADER_USER:
path = CONF_AUTO_LOADER_USER_PATH
if(!FolderExists(path))
CreateFolderOnDisk(path)
endif
break
default:
ASSERT(0, "Invalid type parameter")
break
endswitch

if(!FolderExists(path))
CreateFolderOnDisk(path)
endif

if(FolderExists(path))
symbPath = "PathSettings"
NewPath/O/Q $symbPath, path
Expand Down