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 72bd6dc commit 6ec439cCopy full SHA for 6ec439c
onnxruntime/__init__.py
@@ -215,9 +215,9 @@ def print_debug_info():
215
print(f"{package} not installed")
216
217
if platform.system() == "Windows":
218
- print(f"\nEnvironment variable:\nPATH={os.environ['PATH']}")
+ print(f"\nEnvironment variable:\nPATH={os.environ.get('PATH', '(unset)')}")
219
elif platform.system() == "Linux":
220
- print(f"\nEnvironment variable:\nLD_LIBRARY_PATH={os.environ['LD_LIBRARY_PATH']}")
+ print(f"\nEnvironment variable:\nLD_LIBRARY_PATH={os.environ.get('LD_LIBRARY_PATH', '(unset)')}")
221
222
if importlib.util.find_spec("psutil"):
223
0 commit comments