Avoid empty components in the reference Python library path

Assisted-by: OpenAI Codex:model identifier unavailable
This commit is contained in:
youknowdot committed 2026-10-10 10:11:15 +09:00
1 parent 4e854bbbbc
commit 90d2d12074
1 file changed
+3 -1
+3 -1
View File
@@ -46,7 +46,9 @@ runs:
print(f"pythonLocation={sys.base_prefix}", file=env)
if sys.platform == "linux":
lib = os.path.join(sys.base_prefix, "lib")
print(f"LD_LIBRARY_PATH={lib}:{os.environ.get('LD_LIBRARY_PATH', '')}", file=env)
previous = os.environ.get("LD_LIBRARY_PATH")
lib_path = os.pathsep.join([lib, previous] if previous else [lib])
print(f"LD_LIBRARY_PATH={lib_path}", file=env)
if sys.platform == "win32":
with open(os.environ["GITHUB_PATH"], "a") as path:
print(sys.base_prefix, file=path)