Does not add paths to subfolders when packaging toolbox
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
mPayns
il 1 Ott 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.
Risposte (0)
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!