-
-
Notifications
You must be signed in to change notification settings - Fork 663
Add every path in XDG_DATA_DIRS to sage_data_paths
#40830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Not just the first one.
sage_data_paths
.sage_data_paths
Documentation preview for this PR (built with commit f542401; changes) is ready! 🎉 |
Instead of duplicating the splitting, you could use |
You mean manually appending "sagemath" to every path? I find it simpler this way. |
No... something like, for appname in (None, "sagemath"):
for path in site_data_dir(appname, multipath=True).split(os.pathsep):
paths.add(path) |
But that is still doing two splits? I'm missing the point of looping through a two item list. |
To me it just makes it clear that you're running the same sequence of functions with two different arguments. It's not a big deal. Are any of those CI failures related, or are those the new perma-fails with this beta? |
It (the ubuntu one) has been there for a long time. It's a |
ok, fine by me |
Instead of just the first one.