Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b300ac0

Browse files
authored
Fix broken prefix and debug leftover
1 parent 28a78ed commit b300ac0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pythonnet/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def set_runtime(runtime: Union[clr_loader.Runtime, str], **params: str) -> None:
3030
def _get_params_from_env(prefix: str) -> Dict[str, str]:
3131
from os import environ
3232

33-
full_prefix = f"PYTHONNET_{prefix.upper()}"
33+
full_prefix = f"PYTHONNET_{prefix.upper()}_"
3434
len_ = len(full_prefix)
3535

3636
env_vars = {
@@ -80,9 +80,6 @@ def set_default_runtime() -> None:
8080
"""
8181
from os import environ
8282

83-
print("Set default RUNTIME")
84-
raise RuntimeError("Shouldn't be called here")
85-
8683
spec = environ.get("PYTHONNET_RUNTIME", "default")
8784
runtime = _create_runtime_from_spec(spec)
8885
set_runtime(runtime)

0 commit comments

Comments
 (0)