Correction

svn: r1547
This commit is contained in:
Alex Roitman 2003-05-20 04:52:44 +00:00
parent 2c454c38d8
commit a7a9622f39

View File

@ -951,6 +951,7 @@ class Gramps:
ReadXML.importData(self.db,dbname,None)
except:
print "Error importing %s" % filename
os._exit(1)
elif format == 'gramps-pkg':
# Create tempdir, if it does not exist, then check for writability
tmpdir_path = os.path.expanduser("~/.gramps/tmp" )
@ -983,6 +984,7 @@ class Gramps:
ReadXML.importData(self.db,dbname,None)
except:
print "Error importing %s" % filename
os._exit(1)
# Clean up tempdir after ourselves
files = os.listdir(tmpdir_path)
for fn in files: