protected void AddGetToolToScope(ScriptScope scope, Project project = null) { scope.SetVariable("get_tool", (Func<string, string, string>)((uri, fname) => GetTool(uri, fname, project))); }