145 sqlexec(schemasql, execute, pbtitle=_title) |
145 sqlexec(schemasql, execute, pbtitle=_title) |
146 # install additional driver specific sql files |
146 # install additional driver specific sql files |
147 for fpath in glob(join(CW_SOFTWARE_ROOT, 'schemas', '*.sql.%s' % driver)): |
147 for fpath in glob(join(CW_SOFTWARE_ROOT, 'schemas', '*.sql.%s' % driver)): |
148 print '-> installing', fpath |
148 print '-> installing', fpath |
149 sqlexec(open(fpath).read(), execute, False, delimiter=';;') |
149 sqlexec(open(fpath).read(), execute, False, delimiter=';;') |
150 for directory in config.cubes_path(): |
150 for directory in reversed(config.cubes_path()): |
151 for fpath in glob(join(directory, 'schema', '*.sql.%s' % driver)): |
151 for fpath in glob(join(directory, 'schema', '*.sql.%s' % driver)): |
152 print '-> installing', fpath |
152 print '-> installing', fpath |
153 sqlexec(open(fpath).read(), execute, False, delimiter=';;') |
153 sqlexec(open(fpath).read(), execute, False, delimiter=';;') |
154 sqlcursor.close() |
154 sqlcursor.close() |
155 sqlcnx.commit() |
155 sqlcnx.commit() |