#NEWLINE# def create_pytt_dirs( ) : #NEWLINE# #INDENT# 'Create directories to store config, log and db files.\n    ' #NEWLINE# logging . info ( 'setting up directories for Pytt' ) #NEWLINE# for path in [ CONFIG_PATH , DB_PATH , LOG_PATH ] : #NEWLINE# #INDENT# dirname = os . path . dirname ( path ) #NEWLINE# if ( not os . path . exists ( dirname ) ) : #NEWLINE# #INDENT# os . makedirs ( dirname ) #NEWLINE# #UNINDENT# #UNINDENT# if ( not os . path . exists ( CONFIG_PATH ) ) : #NEWLINE# #INDENT# create_config ( CONFIG_PATH )