Skip to content
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

Unit test paths appear to break on Windows #113

Open
Sujay-Shankar opened this issue May 31, 2022 · 1 comment
Open

Unit test paths appear to break on Windows #113

Sujay-Shankar opened this issue May 31, 2022 · 1 comment

Comments

@Sujay-Shankar
Copy link

local_files = glob.glob("**/SDCH*.spec_a0v.fits", recursive=True)
file = local_files[0]

^ throws an index error

@gully
Copy link
Member

gully commented Jun 1, 2022

We should use either pathlib or os.path... to make these paths platform independent.

I suspect the same problem may true in other places, where we assume Unix-like paths... Let's scan through both muler and gollum for this assumption. Also, I wonder if it's worth setting up a Continuous Integration GitHub Actions matrix on Windows...

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

No branches or pull requests

2 participants