We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb7ff4d commit f2ceaf6Copy full SHA for f2ceaf6
src/embed_tests/TestPythonTests.cs
@@ -4,7 +4,9 @@
4
using System.Linq;
5
using System.Reflection;
6
using System.Text;
7
+
8
using NUnit.Framework;
9
10
using Python.Runtime;
11
12
namespace Python.EmbeddingTest
@@ -32,8 +34,8 @@ static IEnumerable<string[]> MyTestCases()
32
34
public void EmbeddedPythonTest(string testFile, string testName)
33
35
{
36
// Find the tests directory
- string folder = Directory.GetCurrentDirectory();
- while(Path.GetFileName(folder) != "src")
37
+ string folder = typeof(TestPythonTests).Assembly.Location;
38
+ while (Path.GetFileName(folder) != "src")
39
40
folder = Path.GetDirectoryName(folder);
41
}
0 commit comments