Skip to content

Commit 4f0a728

Browse files
author
Release Manager
committed
gh-40830: Add every path in XDG_DATA_DIRS to `sage_data_paths` Instead of just the first one. URL: #40830 Reported by: Antonio Rojas Reviewer(s):
2 parents 3c071b3 + f542401 commit 4f0a728

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/env.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,8 @@ def sage_data_paths(name: str | None) -> set[str]:
545545
}
546546
paths.add(user_data_dir("sagemath"))
547547
paths.add(user_data_dir())
548-
paths.add(site_data_dir("sagemath"))
549-
paths.add(site_data_dir())
548+
for path in site_data_dir("sagemath", multipath=True).split(os.pathsep) + site_data_dir(multipath=True).split(os.pathsep):
549+
paths.add(path)
550550
else:
551551
paths = {path for path in SAGE_DATA_PATH.split(os.pathsep)}
552552

0 commit comments

Comments
 (0)