Skip to content

Conversation

antonio-rojas
Copy link
Contributor

@antonio-rojas antonio-rojas commented Sep 15, 2025

Instead of just the first one.

@antonio-rojas antonio-rojas changed the title Add every path in XDG_DATA_DIRS to sage_data_paths. Add every path in XDG_DATA_DIRS to sage_data_paths Sep 15, 2025
Copy link

Documentation preview for this PR (built with commit f542401; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@orlitzky
Copy link
Contributor

Instead of duplicating the splitting, you could use for appname in (None, "sagemath")?

@antonio-rojas
Copy link
Contributor Author

Instead of duplicating the splitting, you could use for appname in (None, "sagemath")?

You mean manually appending "sagemath" to every path? I find it simpler this way.

@orlitzky
Copy link
Contributor

No... something like,

for appname in (None, "sagemath"):
    for path in site_data_dir(appname, multipath=True).split(os.pathsep):
        paths.add(path)

@antonio-rojas
Copy link
Contributor Author

But that is still doing two splits? I'm missing the point of looping through a two item list.

@orlitzky
Copy link
Contributor

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?

@antonio-rojas
Copy link
Contributor Author

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 # long time test so it only shows up on PRs touching env.py. The other ones are unrelated.

@orlitzky
Copy link
Contributor

ok, fine by me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants