Does not add paths to subfolders when packaging toolbox

조회 수: 2 (최근 30일)
George Howell
George Howell 2020년 9월 24일
댓글: Rik 2022년 5월 20일
Hi,
I'm currently having an issue when trying to package code into a toolbox. I select the main code folder in the tool and it shows all the subfolders present. However, when packaging it up and installing it, it only adds the path to the main code folder and not the subfolders, hence it cannot find most of the code.
This has not been an issue with previous versions of the toolbox that was made by a collegue. I have tried creating the package from scatch again, rather than the save toolbox.prj file and still the same thing occurs (also tried window / mac version both 2019b, 2020a and 2020b but no luck).
I understand that I can add the subfolder manually afterwards, but as the toolbox is to be distrubuted it would be nice to have this automatically done when the toolbox is installed, and given the fact that it worked before without.
Any help would be apprecieated. Thanks in advance.
  댓글 수: 4
mPayns
mPayns 2020년 10월 1일
I am facing the same situation, My toolbox consists of 3 subfolders with different scripts and files, the user should just be able to call them directly after installng the toolbox but the only folder added to the path is the top folder, so the files and subfolders are not existing in the path.
Found the fix: When packaging the tool you need to go to the 'Install Actions' section, then click on 'Manage the current MATLAB Path', look for the top folder where the subfolders are located, select it and click on 'Add with subfolders' on the left side, then close the path window and your tool should have the subfolders now.
Rik
Rik 2022년 5월 20일
Comment posted by issam HAMMADI as flag:
you saved me
@mPayns It appears your comment has merrit as a solution, so feel free to post it as an answer. Then Issam could have given you an upvote.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by