def setup(): setup_logging() # Check check if database exists, otherwise create sqlite file dbFile = get_config()['database']['location'] if path.exists(dbFile): logger.info('Using database file "%s"' % dbFile) else: logger.info('Init database on "%s"' % dbFile) init_db() # parse all workspaces already on the hard drive scan_workspaces_dir() # Start the flask server logger.info("Launch flask server")
def test_scan_workspace(): reset_db() scan_workspaces_dir()