From 28a66006191c9e56e07c26e5d8155f553252fec4 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 24 Nov 2010 18:11:01 +0000 Subject: [PATCH] * ExampleBrowser.cs: Correctly use the assembly location to locate the Source directory. --- Source/Examples/ExampleBrowser.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Examples/ExampleBrowser.cs b/Source/Examples/ExampleBrowser.cs index 97ef206b..4e82d33e 100644 --- a/Source/Examples/ExampleBrowser.cs +++ b/Source/Examples/ExampleBrowser.cs @@ -443,6 +443,8 @@ namespace Examples // Tries to detect the path that contains the source for the examples. static string FindSourcePath(string guess) { + guess = Path.GetDirectoryName(guess); + // Typically, our working directory is either "[opentk]/Binaries/OpenTK/[config]" or "[opentk]". // The desired source path is "[opentk]/Source/Examples/[ExampleCategory]" if (CheckPath(ref guess))