Skip to content

Instantly share code, notes, and snippets.

@jpobst
Created January 19, 2011 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpobst/785595 to your computer and use it in GitHub Desktop.
Save jpobst/785595 to your computer and use it in GitHub Desktop.
public string MapFileName (string file)
{
string root = Engine.Session.ProgramStartInfo.ProjectDirectory;
if (file.StartsWith (root))
file = file.Substring (root.Length + 1);
return file;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment