ScriptHelper.BasePath

This the base path that's used for ~/ or / paths when using RenderTemplate

This value is null by default and if not set the current working directory is used instead.

public string BasePath