Skip to content

Commit f542401

Browse files
committed
Don't hardcode path separator
1 parent eb17cab commit f542401

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def sage_data_paths(name: str | None) -> set[str]:
536536
}
537537
paths.add(user_data_dir("sagemath"))
538538
paths.add(user_data_dir())
539-
for path in site_data_dir("sagemath", multipath=True).split(':') + site_data_dir(multipath=True).split(':'):
539+
for path in site_data_dir("sagemath", multipath=True).split(os.pathsep) + site_data_dir(multipath=True).split(os.pathsep):
540540
paths.add(path)
541541
else:
542542
paths = {path for path in SAGE_DATA_PATH.split(os.pathsep)}

0 commit comments

Comments
 (0)