mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
Avoid empty components in the reference Python library path
Assisted-by: OpenAI Codex:model identifier unavailable
This commit is contained in:
1 parent
4e854bbbbc
commit
90d2d12074
1 file changed
+3
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user