12 from Alignment.OfflineValidation.TkAlAllInOneTool.helperFunctions
import recursivesubclasses
19 subclasses = [subcls
for subcls
in subclasses
if not subcls.__abstractmethods__]
20 printedanything =
False
22 for subcls
in subclasses:
23 tried += [
"{}Summary.txt".
format(subcls.__name__), os.path.join(subcls.plotsdirname(),
"{}Summary.txt".
format(subcls.__name__))]
24 if os.path.exists(os.path.join(folder,
"{}Summary.txt".
format(subcls.__name__))):
25 printedanything =
True
26 subcls.printsummaryitems(folder=folder)
27 elif os.path.exists(os.path.join(folder, subcls.plotsdirname(),
"{}Summary.txt".
format(subcls.__name__))):
28 subcls.printsummaryitems(folder=os.path.join(folder, subcls.plotsdirname()))
29 printedanything =
True
31 if not printedanything:
32 raise ValueError(
"Didn't find any *ValidationSummary.txt. Maybe try somewhere else?\nPaths searched:\n" +
"\n".
join(tried))
static std::string join(char **cmd)