def make_out_dirs(out_dir): for direct in psettings.DIRS: file_util.makedirs_quiet(os.path.join(out_dir, direct))
def ensure_base_dir_exists(path): if os.path.isdir(path): return else: # print "The directory: %s doesn't exist." % path file_util.makedirs_quiet(path)