From d02155af4ea5d5fed21c9e45fe56ac8a605fc88a Mon Sep 17 00:00:00 2001 From: Jonathan Grizou Date: Wed, 3 Jul 2013 21:22:23 +0200 Subject: [PATCH] Fixed other command, only tested for export_cmd --- papers/commands/add_library_cmd.py | 2 +- papers/commands/export_cmd.py | 2 +- papers/commands/import_cmd.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/papers/commands/add_library_cmd.py b/papers/commands/add_library_cmd.py index 7fbdd9e..8697eef 100644 --- a/papers/commands/add_library_cmd.py +++ b/papers/commands/add_library_cmd.py @@ -13,6 +13,6 @@ def command(ui, bibfile): """ :param bibtex bibtex file (in .bib, .bibml or .yaml format. """ - rp = repo.Repository.from_directory(config()) + rp = repo.Repository(config()) for p in Paper.many_from_bib(bibfile): rp.add_paper(p) diff --git a/papers/commands/export_cmd.py b/papers/commands/export_cmd.py index 82e1f04..4bbac80 100644 --- a/papers/commands/export_cmd.py +++ b/papers/commands/export_cmd.py @@ -20,7 +20,7 @@ def command(ui, bib_format, references): """ :param bib_format (in 'bibtex', 'yaml') """ - rp = repo.Repository.from_directory(config()) + rp = repo.Repository(config()) papers = [rp.get_paper(c) for c in parse_references(ui, rp, references)] if len(papers) == 0: diff --git a/papers/commands/import_cmd.py b/papers/commands/import_cmd.py index b883310..16eef26 100644 --- a/papers/commands/import_cmd.py +++ b/papers/commands/import_cmd.py @@ -21,7 +21,7 @@ def command(ui, bibpath, copy): """ if copy is None: copy = config().import_copy - rp = repo.Repository.from_directory(config()) + rp = repo.Repository(config()) # Extract papers from bib papers = Paper.many_from_path(bibpath, fatal=False) for p in papers: