#NEWLINE# def reload_settings( ) : #NEWLINE# #INDENT# floorc_settings = load_floorc_json ( ) #NEWLINE# for ( name , val ) in floorc_settings . items ( ) : #NEWLINE# #INDENT# setattr ( G , name , val ) #NEWLINE# #UNINDENT# if G . SHARE_DIR : #NEWLINE# #INDENT# G . BASE_DIR = G . SHARE_DIR #NEWLINE# #UNINDENT# G . BASE_DIR = os . path . realpath ( os . path . expanduser ( G . BASE_DIR ) ) #NEWLINE# G . COLAB_DIR = os . path . join ( G . BASE_DIR , 'share' ) #NEWLINE# G . COLAB_DIR = os . path . realpath ( G . COLAB_DIR ) #NEWLINE# if G . DEBUG : #NEWLINE# #INDENT# msg . LOG_LEVEL = msg . LOG_LEVELS [ 'DEBUG' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# msg . LOG_LEVEL = msg . LOG_LEVELS [ 'MSG' ] #NEWLINE# #UNINDENT# mkdir ( G . COLAB_DIR ) #NEWLINE# return floorc_settings