def add_load_holder(self, name, path_or_txt, commit=False, add=True):
    p = os.path.join(paths.meta_root, 'load_holders', name)
    if os.path.isfile(path_or_txt):
        shutil.copyfile(path_or_txt, p)
    else:
        with open(p, 'w') as wfile:
            wfile.write(path_or_txt)
    if add:
        self.add(p, commit=commit)
def add_load_holder(self, name, path_or_txt, commit=False, add=True):
    p = os.path.join(paths.meta_root, 'load_holders', name)
    if os.path.isfile(path_or_txt):
        shutil.copyfile(path_or_txt, p)
    else:
        with open(p, 'w') as wfile:
            wfile.write(path_or_txt)
    if add:
        self.add(p, commit=commit)