#NEWLINE# def config_filenames( ) : #NEWLINE# #INDENT# paths = [ './' , os . path . expanduser ( '~' ) ] #NEWLINE# if ( ( sys . platform in ( 'cygwin' , 'win32' ) ) and ( 'APPDATA' in os . environ ) ) : #NEWLINE# #INDENT# paths . append ( os . path . join ( os . environ [ 'APPDATA' ] ) ) #NEWLINE# #UNINDENT# for path in reversed ( paths ) : #NEWLINE# #INDENT# for filename in reversed ( ( 'behave.ini' , '.behaverc' , 'setup.cfg' ) ) : #NEWLINE# #INDENT# filename = os . path . join ( path , filename ) #NEWLINE# if os . path . isfile ( filename ) : #NEWLINE# #INDENT# ( yield paths )