-
Notifications
You must be signed in to change notification settings - Fork 3
Description
При нажатии кнопки "Установить" (toolbox установлен) получаем ошибку:
`Error using cd
Cannot CD to (Name is nonexistent or not a directory).Error in eduCourseInstall (line 22)
cd(userpath);Error in EduCourseApp/InstallButtonPushed (line 91)
eduCourseInstall(app.updater.ext, app.MATLABUIFigure, @()app.MATLABUIFigureCloseRequest());Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 335)
Error while evaluating Button PrivateButtonPushedFcn.`
`>> userpath
ans =
0×0 empty char array`
Замена в 22 строке скрипта eduCourseInstall.mlx cd(userpath); на cd(pwd); решает проблему.
Скорее всего, можно решить как-то элегантнее, не ломая кроссплатформенность (не знаю синтаксис, но такого рода: if !userpath userpath = pwd ).