Fixed bug in generate_bib in texnote

main
jgrizou 12 years ago
parent 67dc6d1983
commit 62e3c8e9e4

@ -192,6 +192,8 @@ class TexnotePlugin(PapersPlugin):
shutil.move(self.get_texfile(old_citekey), self.get_texfile(new_citekey)) shutil.move(self.get_texfile(old_citekey), self.get_texfile(new_citekey))
def generate_bib(self): def generate_bib(self):
if files.check_file(TPL_BIB):
os.remove(TPL_BIB)
cmd = 'papers list -k |xargs papers export >> {}'.format(TPL_BIB) cmd = 'papers list -k |xargs papers export >> {}'.format(TPL_BIB)
os.system(cmd) os.system(cmd)

Loading…
Cancel
Save