def get_tool_panel_config_tool_path_install_dir(app, repository):
 tool_shed = common_util.remove_port_from_tool_shed_url(str(repository.tool_shed))
 relative_install_dir = ('%s/repos/%s/%s/%s' % (tool_shed, str(repository.owner), str(repository.name), str(repository.installed_changeset_revision)))
 shed_config_dict = repository.get_shed_config_dict(app)
 if (not shed_config_dict):
  for shed_config_dict in app.toolbox.dynamic_confs(include_migrated_tool_conf=True):
   if ((repository.dist_to_shed and (shed_config_dict['config_filename'] == app.config.migrated_tools_config)) or ((not repository.dist_to_shed) and (shed_config_dict['config_filename'] != app.config.migrated_tools_config))):
    break
 shed_tool_conf = shed_config_dict['config_filename']
 tool_path = shed_config_dict['tool_path']
 return (shed_tool_conf, tool_path, relative_install_dir)

def get_tool_panel_config_tool_path_install_dir ( app , repository ) : tool_shed = common_util . remove_port_from_tool_shed_url ( str ( repository . tool_shed ) ) relative_install_dir = ( '%s/repos/%s/%s/%s' % ( tool_shed , str ( repository . owner ) , str ( repository . name ) , str ( repository . installed_changeset_revision ) ) ) shed_config_dict = repository . get_shed_config_dict ( app ) if ( not shed_config_dict ) : for shed_config_dict in app . toolbox . dynamic_confs ( include_migrated_tool_conf = True ) : if ( ( repository . dist_to_shed and ( shed_config_dict [ 'config_filename' ] == app . config . migrated_tools_config ) ) or ( ( not repository . dist_to_shed ) and ( shed_config_dict [ 'config_filename' ] != app . config . migrated_tools_config ) ) ) : break shed_tool_conf = shed_config_dict [ 'config_filename' ] tool_path = shed_config_dict [ 'tool_path' ] return ( shed_tool_conf , tool_path , relative_install_dir )
return shed-related tool panel config .