Skip to content

Не устанавливается в linux #2

@neonll

Description

@neonll

При нажатии кнопки "Установить" (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 ).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions