From ffb10b08d9a659642602cbf3b1a22c7064cf5cb8 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sun, 18 May 2003 17:31:45 +0000 Subject: [PATCH] Command-line import svn: r1538 --- src/gramps_main.py | 85 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 80 insertions(+), 5 deletions(-) diff --git a/src/gramps_main.py b/src/gramps_main.py index 138b748c3..b75305e35 100755 --- a/src/gramps_main.py +++ b/src/gramps_main.py @@ -147,8 +147,9 @@ class Gramps: if leftargs: print "Unrecognized option: %s" % leftargs[0] return - outfile = '' + outfname = '' action = '' + imports = [] for opt_ix in range(len(options)): o = options[opt_ix][0][1] if o == '-': @@ -169,7 +170,7 @@ class Gramps: else: print "Unrecognized format for input file %s" % fname return - self.cl_import(fname,format) + imports.append((fname,format)) elif o == 'o': outfname = options[opt_ix][1] if opt_ix