def build_directory():
    '''
    Build the directory for Whoosh database, and locale.
    '''
    if os.path.exists('locale'):
        pass
    else:
        os.mkdir('locale')
    if os.path.exists(WHOOSH_DB_DIR):
        pass
    else:
        os.makedirs(WHOOSH_DB_DIR)
def build_directory ( ) : if os . path . exists ( 'locale' ) : pass else : os . mkdir ( 'locale' ) if os . path . exists ( WHOOSH_DB_DIR ) : pass else : os . makedirs ( WHOOSH_DB_DIR )
Build the directory for Whoosh database, and locale.