From 3e36038c3b01e57ba184aa5f51d621a62ccdc956 Mon Sep 17 00:00:00 2001 From: Sebastien Morais Date: Mon, 2 Dec 2024 15:12:50 +0100 Subject: [PATCH] WIP --- src/pyedb/dotnet/clr_module.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/pyedb/dotnet/clr_module.py b/src/pyedb/dotnet/clr_module.py index 2fe25cb7b7..b84660b184 100644 --- a/src/pyedb/dotnet/clr_module.py +++ b/src/pyedb/dotnet/clr_module.py @@ -35,20 +35,6 @@ def custom_show_warning(message, category, filename, lineno, file=None, line=Non sys.path.append(str(pyedb_path / "dlls" / "PDFReport")) -def find_runtime_config(dotnet_root: Path) -> Path: - """Find dotnet runtime configuration file path.""" - sdk_path = dotnet_root / "sdk" - if not sdk_path.is_dir(): - raise EnvironmentError(f"The 'sdk' directory could not be found in: {dotnet_root}") - sdk_versions = sorted(sdk_path.iterdir(), key=lambda x: x.name, reverse=True) - if not sdk_versions: - raise FileNotFoundError("No SDK versions were found.") - runtime_config = sdk_versions[0] / "dotnet.runtimeconfig.json" - if not runtime_config.is_file(): - raise FileNotFoundError(f"The configuration file '{runtime_config}' does not exist.") - return runtime_config - - if is_linux: # pragma: no cover from pythonnet import load