Does not add paths to subfolders when packaging toolbox

2 visualizaciones (últimos 30 días)
George Howell
George Howell el 24 de Sept. de 2020
Comentada: Rik el 20 de Mayo de 2022
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 comentarios
mPayns
mPayns el 1 de Oct. de 2020
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 el 20 de Mayo de 2022
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by