#NEWLINE# def get_config_path( cfg_path = None , os_name = None ) : #NEWLINE# #INDENT# if ( ( cfg_path is not None ) and os . path . exists ( cfg_path ) ) : #NEWLINE# #INDENT# return cfg_path #NEWLINE# #UNINDENT# if ( os_name is None ) : #NEWLINE# #INDENT# os_name = get_os ( ) #NEWLINE# #UNINDENT# if ( cfg_path == 'windows' ) : #NEWLINE# #INDENT# return _windows_config_path ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( os_name == 'mac' ) : #NEWLINE# #INDENT# return _mac_config_path ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return _unix_config_path ( )