Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Set DOTNET_ROOT with str and not Path #933

Merged
merged 3 commits into from
Dec 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pyedb/dotnet/clr_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def custom_show_warning(message, category, filename, lineno, file=None, line=Non

runtime = get_coreclr()
load(runtime)
os.environ["DOTNET_ROOT"] = str(runtime.dotnet_root)
os.environ["DOTNET_ROOT"] = runtime.dotnet_root.as_posix()
is_clr = True
# TODO: Fall backing to dotnetcore2 should be removed in a near future.
except Exception:
Expand Down Expand Up @@ -83,7 +83,7 @@ def custom_show_warning(message, category, filename, lineno, file=None, line=Non
if dotnet_root is not None and runtime_config is not None:
try:
load("coreclr", runtime_config=str(runtime_config), dotnet_root=str(dotnet_root))
os.environ["DOTNET_ROOT"] = dotnet_root
os.environ["DOTNET_ROOT"] = dotnet_root.as_posix()
if "mono" not in os.getenv("LD_LIBRARY_PATH", ""):
warnings.warn("LD_LIBRARY_PATH needs to be setup to use pyedb.")
warnings.warn("export ANSYSEM_ROOT242=/path/to/AnsysEM/v242/Linux64")
Expand Down
Loading