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

File name expansions do not work in cfdm.write #157

Closed
davidhassell opened this issue Sep 7, 2021 · 0 comments · Fixed by #158
Closed

File name expansions do not work in cfdm.write #157

davidhassell opened this issue Sep 7, 2021 · 0 comments · Fixed by #158
Assignees
Labels
bug Something isn't working netCDF write Relating to writing netCDF datasets
Milestone

Comments

@davidhassell
Copy link
Contributor

At cfdm 1.8.9.0, tilde and environment variable file name expansions no longer work in cfdm.write:

>>> import cfdm
>>> f = cfdm.example_field(0)
>>> cfdm.write(f, 'test_file.nc')  # OK
>>> cfdm.write(f, '~/test_file.nc')  # Not OK
    ...
PermissionError: [Errno 13] Permission denied: b'/home/david/~/test_file.nc'
>>> cfdm.write(f, ''$HOME/test_file.nc')  # Not OK
    ...
PermissionError: [Errno 13] Permission denied: b'/home/david/$HOME/test_file.nc'

PR fix to follow.

@davidhassell davidhassell added the bug Something isn't working label Sep 7, 2021
@davidhassell davidhassell self-assigned this Sep 7, 2021
@davidhassell davidhassell added this to the 1.9.0.0 milestone Jan 31, 2022
@davidhassell davidhassell added the netCDF write Relating to writing netCDF datasets label Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working netCDF write Relating to writing netCDF datasets
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant