#NEWLINE# def _setup( ) : #NEWLINE# #INDENT# "The config consists of lines of the form <name> = <value>.\n  values will hold a mapping from the <name> to value.\n  Blank lines and lines starting with '#' are ignored." #NEWLINE# configfile = os . path . expanduser ( '~/.notoconfig' ) #NEWLINE# if os . path . exists ( configfile ) : #NEWLINE# #INDENT# with open ( configfile , 'r' ) as f : #NEWLINE# #INDENT# for line in f : #NEWLINE# #INDENT# line = line . strip ( ) #NEWLINE# if ( ( not line ) or line . startswith ( '#' ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# ( k , v ) = line . split ( '=' , 1 ) #NEWLINE# values [ k . strip ( ) ] = v . strip ( )