Why does using the function GENPATH on a folder that contains packages such as "+PackageFolder" produce string that causes a warning when used with the function ADDPATH?

조회 수: 10 (최근 30일)
I have generated a string using GENPATH. Since it also adds the package folders to the string, this causes the ADDPATH function to show the following warning:
Warning: Package directories not allowed in MATLAB path:
C:\Temp\Test\+PackageFolder.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
The ability for the function GENPATH to ignore package folders as it does with class (@ClassFolder) and private folders is not available in MATLAB R2008a.
If the string that is generated by GENPATH contains package folders, a warning will be shown if the string is used as the argument for the function ADDPATH.
No workaround is needed since ADDPATH will ignore the package folder. All preceding and subsequent folders in the string will be added to the path normally.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2008a

Community Treasure Hunt

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

Start Hunting!

Translated by