133 Search for the file up to two levels deep within the first DATAPATH entry.
134 First, check directly under the analysis repository (depth 0).
135 Then, check immediate subdirectories (depth 1), looking for the file inside each.
136 Returns a list of all matches found.
139 analysisRepoPath = os.environ.get(
'DATAPATH',
'').
split(os.pathsep)[0]
141 searchPath = os.path.join(analysisRepoPath, textConfigPath)
142 if os.path.isfile(searchPath):
143 matches.append(searchPath)
146 for subdir
in os.listdir(analysisRepoPath):
147 candidate = os.path.join(analysisRepoPath, subdir, textConfigPath)
148 if os.path.isfile(candidate):
149 matches.append(candidate)