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

pdrive windows should include slash #1084

Closed
veenstrajelmer opened this issue Jan 28, 2025 · 0 comments · Fixed by #1085
Closed

pdrive windows should include slash #1084

veenstrajelmer opened this issue Jan 28, 2025 · 0 comments · Fixed by #1085

Comments

@veenstrajelmer
Copy link
Collaborator

veenstrajelmer commented Jan 28, 2025

Follow up from #1080
pdrive should be p:/ for windows (including slash), for observations.py and interpolate_grid2bnd.py. Although both now seem to work somehow. On linux, this is not required. The windows behaviour is to me unexpected and inconvenient, but it seems to be intended: https://stackoverflow.com/questions/23955968/windows-path-with-no-slash-after-drive-letter-and-colon-what-does-it-point-to

Behaviour on windows (excludes slash):

>>> from pathlib import Path; print(Path("p:","aa"))
p:aa

Behaviour on linux (includes slash):

>>> from pathlib import Path; print(Path("/p","aa"))
/p/aa
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

Successfully merging a pull request may close this issue.

1 participant