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:
parent
4a6b730259
commit
51de7f3399
@ -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>
|
2007-03-27 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/ReportBase/_CommandLineReport.py
|
* src/ReportBase/_CommandLineReport.py
|
||||||
* src/ReportBase/_BareReportDialog.py
|
* src/ReportBase/_BareReportDialog.py
|
||||||
|
@ -107,6 +107,12 @@ class DbManager:
|
|||||||
def populate(self):
|
def populate(self):
|
||||||
self.model = gtk.ListStore(str, str, str, str, int)
|
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 = []
|
sort_list = []
|
||||||
for dpath in os.listdir(DEFAULT_DIR):
|
for dpath in os.listdir(DEFAULT_DIR):
|
||||||
path_name = os.path.join(DEFAULT_DIR, dpath, NAME_FILE)
|
path_name = os.path.join(DEFAULT_DIR, dpath, NAME_FILE)
|
||||||
|
Loading…
Reference in New Issue
Block a user