diff --git a/MDAF/MDAF.py b/MDAF/MDAF.py index bd96093..da15be8 100644 --- a/MDAF/MDAF.py +++ b/MDAF/MDAF.py @@ -219,7 +219,10 @@ def representfunc(funcpath, forced = False): def doe(heuristicpath, testfunctionpaths, args): - for i,path in enumerate(testfunctionpaths): if (path.find('@') == 0): testfunctionpaths[i] = path.dirname(__file__) + '/TestFunctions/' + testfunctionpaths[1:] + for i,path in enumerate(testfunctionpaths): + if path.find('@') == 0: + testfunctionpaths[i] = path.dirname(__file__) + '/TestFunctions/' + testfunctionpaths[1:] + if (heuristicpath.find('@') == 0): heuristicpath = path.dirname(__file__) + '/TestFunctions/' + heuristicpath[1:] #defining the function's name