def openDB(databaseFilePath = None):
if ((databaseFilePath == None) or (not (os.path.isfile(databaseFilePath)))):
databaseFilePath = settings.getDBFilePath()
databaseURL = 'sqlite:///{}'.format(databaseFilePath)
return dataset.connect(databaseURL)
评论列表
文章目录