def get_tool_path_by_shed_tool_conf_filename(app, shed_tool_conf):
 for shed_tool_conf_dict in app.toolbox.dynamic_confs(include_migrated_tool_conf=True):
  config_filename = shed_tool_conf_dict['config_filename']
  if (config_filename == shed_tool_conf):
   return shed_tool_conf_dict['tool_path']
  else:
   file_name = basic_util.strip_path(config_filename)
   if (file_name == shed_tool_conf):
    return shed_tool_conf_dict['tool_path']
 return None

def get_tool_path_by_shed_tool_conf_filename ( app , shed_tool_conf ) : for shed_tool_conf_dict in app . toolbox . dynamic_confs ( include_migrated_tool_conf = True ) : config_filename = shed_tool_conf_dict [ 'config_filename' ] if ( config_filename == shed_tool_conf ) : return shed_tool_conf_dict [ 'tool_path' ] else : file_name = basic_util . strip_path ( config_filename ) if ( file_name == shed_tool_conf ) : return shed_tool_conf_dict [ 'tool_path' ] return None
return the tool_path config setting for the received shed_tool_conf file by searching the tool boxs in-memory list of shed_tool_confs for the dictionary whose config_filename key has a value matching the received shed_tool_conf .