#NEWLINE# def _get_action_local_config_path( self , action_file_path ) : #NEWLINE# #INDENT# '\n        Retrieve path to the local config for the provided Python action.\n\n        Note: Configs are only supported for Python actions.\n\n        :rtype: ``str``\n        ' #NEWLINE# if ( not action_file_path . endswith ( '.py' ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Only Python actions are supported' ) #NEWLINE# #UNINDENT# ( dir_name , file_name ) = os . path . split ( action_file_path ) #NEWLINE# config_name = file_name . replace ( '.py' , action_file_path . LOCAL_CONFIG_SUFFIX ) #NEWLINE# local_config_path = os . path . join ( dir_name , config_name ) #NEWLINE# return local_config_path