Does not add paths to subfolders when packaging toolbox
조회 수: 2 (최근 30일)
이전 댓글 표시
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
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.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!