Skip to content

Commit eb17cab

Browse files
committed
Add every path in XDG_DATA_DIRS to sage_data_paths.
Not just the first one.
1 parent 28b7af0 commit eb17cab

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
@@ -536,8 +536,8 @@ def sage_data_paths(name: str | None) -> set[str]:
536536
}
537537
paths.add(user_data_dir("sagemath"))
538538
paths.add(user_data_dir())
539-
paths.add(site_data_dir("sagemath"))
540-
paths.add(site_data_dir())
539+
for path in site_data_dir("sagemath", multipath=True).split(':') + site_data_dir(multipath=True).split(':'):
540+
paths.add(path)
541541
else:
542542
paths = {path for path in SAGE_DATA_PATH.split(os.pathsep)}
543543

0 commit comments

Comments
 (0)