Commit: Update Python library search path for Linux

This commit is contained in:
Miha Kralj
2023-05-05 08:53:27 -07:00
parent 9714dedcba
commit 957f4da294
2 changed files with 3 additions and 12 deletions
+1 -1
View File
@@ -464,7 +464,7 @@ public static class PythonLibrary {
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) {
List<string> pythonLibraries = new List<string>();
List<string> directoriesToSearch = new List<string> { "/opt/hostedtoolcache/Python" }; // Add more directories as needed
List<string> directoriesToSearch = new List<string> { "/home/runner/.local/lib" }; // Add more directories as needed
string filePattern = "libpython3.*.so";
SearchFiles(directoriesToSearch, filePattern, pythonLibraries);