From 95bfda98eb42137c1e45a788b102a1294f202ee9 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 --- gramps2/src/gramps_main.py | 85 +++++++++++++++++++++++++++++++++++--- 1 file changed, 80 insertions(+), 5 deletions(-) diff --git a/gramps2/src/gramps_main.py b/gramps2/src/gramps_main.py index 138b748c3..b75305e35 100755 --- a/gramps2/src/gramps_main.py +++ b/gramps2/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