2007-03-27 Don Allingham <don@gramps-project.org>

* src/DbManager.py (DbManager.populate): make default directory if it
	does not exist



svn: r8324
This commit is contained in:
Don Allingham 2007-03-27 11:54:10 +00:00
parent 4a6b730259
commit 51de7f3399
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2007-03-27 Don Allingham <don@gramps-project.org>
* src/DbManager.py (DbManager.populate): make default directory if it
does not exist
2007-03-27 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_CommandLineReport.py
* src/ReportBase/_BareReportDialog.py

View File

@ -107,6 +107,12 @@ class DbManager:
def populate(self):
self.model = gtk.ListStore(str, str, str, str, int)
try:
if not os.path.isdir(DEFAULT_DIR):
os.mkdir(DEFAULT_DIR)
except:
print "did not make default dir"
sort_list = []
for dpath in os.listdir(DEFAULT_DIR):
path_name = os.path.join(DEFAULT_DIR, dpath, NAME_FILE)