0002301: Fails to import from the command-line
svn: r11059
This commit is contained in:
parent
11f9e2a5ad
commit
728b906497
@ -59,6 +59,7 @@ import RecentFiles
|
||||
import Utils
|
||||
import gen.db.exceptions as GX
|
||||
from DbManager import CLIDbManager, NAME_FILE, find_locker_name
|
||||
import gen
|
||||
|
||||
from PluginUtils import Tool, cl_list, cli_tool_list
|
||||
from ReportBase import CATEGORY_BOOK, CATEGORY_CODE, CATEGORY_WEB, cl_report
|
||||
@ -462,6 +463,8 @@ class ArgHandler:
|
||||
if not self.open:
|
||||
# Create empty dir for imported database(s)
|
||||
self.imp_db_path = Utils.get_empty_tempdir("import_dbdir")
|
||||
newdb = gen.db.GrampsDBDir()
|
||||
newdb.write_version(self.imp_db_path)
|
||||
self.vm.db_loader.read_file(self.imp_db_path)
|
||||
|
||||
for imp in self.imports:
|
||||
|
Loading…
x
Reference in New Issue
Block a user