-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathieSpitschanRootPath.m
42 lines (38 loc) · 1.01 KB
/
ieSpitschanRootPath.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
function rootPath = ieSpitschanRootPath()
% Return the path to the root isetspitschan directory
%
% Syntax:
% rootPath = ieSpitschanRootPath;
%
% Description:
% This points at the top level of the isetbio tree on the Matlab path.
%
% Examples are included within the code.
%
% Inputs:
% None.
%
% Outputs:
% rootPath - The root directory for isetspitschan
%
% Optional key/value pairs:
% None.
%
% Notes:
% * [Note: XXX - This function works by using the function mfilename to
% find itself, and then walks back up the result to the top level of
% isetbio. Thus, you can't move this function within the isetbio tree
% without also adjusting the number of levels in the walk to match
% where you move it to.]
%
% See Also:
% isetbioDataPath, isetRootPath
% Examples:
%{
fullfile(isetSpitschanRootPath, 'data')
%}
%% Get path to this function and then walk back up to the isetbio root.
pathToMe = mfilename('fullpath');
%% Walk back up the chain
rootPath = fileparts(pathToMe);
end