def get_results_dir(self):
    path1 = os.path.join(self.conf.results_dir, self.utc)
    path2 = os.path.join(self.conf.old_results_dir, self.utc)
    if os.path.isdir(path1):
        self.results_dir = self.conf.results_dir
    elif os.path.isdir(path2):
        self.results_dir = self.conf.old_results_dir
    else:
        raise IOError('Directory for UTC: {0} does not exist in any of the new or old results. Neither {1} nor {2} exists'.format(self.utc, path1, path2))
def get_results_dir(self):
    path1 = os.path.join(self.conf.results_dir, self.utc)
    path2 = os.path.join(self.conf.old_results_dir, self.utc)
    if os.path.isdir(path1):
        self.results_dir = self.conf.results_dir
    elif os.path.isdir(path2):
        self.results_dir = self.conf.old_results_dir
    else:
        raise IOError('Directory for UTC: {0} does not exist in any of the new or old results. Neither {1} nor {2} exists'.format(self.utc, path1, path2))