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