File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ function configureOpenSim()
66
66
% permissions and limitations under the License. %
67
67
% ----------------------------------------------------------------------- %
68
68
69
- function [openSimFolder] = uiGetOpenSimFolder()
69
+ function [openSimFolder, api_distro ] = uiGetOpenSimFolder()
70
70
% Prompt user for OpenSim folder.
71
71
startPath = '';
72
72
@@ -86,6 +86,7 @@ function [openSimFolder] = uiGetOpenSimFolder()
86
86
if ~openSimFolder
87
87
showMessage('You did not select a folder.', 'Error', true);
88
88
end
89
+ api_distro = false
89
90
if ismac
90
91
[~, name, ext] = fileparts(openSimFolder);
91
92
% If openSimFolder is '/Applications/OpenSim 4.0.1' then we'll get:
114
115
% This function returns all but the leaf element of the provided path.
115
116
openSimFolder = fileparts(openSimFolder);
116
117
end
118
+ api_distro = false;
117
119
% For this to be an OpenSim installation, there must be a buildinfo file.
118
120
buildInfoFile = fullfile(openSimFolder, '@CMAKE_INSTALL_SYSCONFDIR@', ...
119
121
'OpenSim_buildinfo.txt');
122
124
% installation; ask the user to choose an install directory.
123
125
correctFolder = false;
124
126
while ~correctFolder
125
- openSimFolder = uiGetOpenSimFolder();
127
+ [ openSimFolder, api_distro] = uiGetOpenSimFolder();
126
128
% Check if the user selected a valid folder.
127
129
if api_distro
128
130
subfoldername = 'etc';
You can’t perform that action at this time.
0 commit comments