Skip to content

Commit

Permalink
use filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
headtr1ck committed Nov 14, 2024
1 parent 000466c commit 43ba78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netCDF4/_netCDF4.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -3514,7 +3514,7 @@ Dataset instance for `ncfilename` is returned.
if format not in formatcodes:
raise ValueError('illegal format requested')
ncgenargs="-knc%s" % formatcodes[format]
subprocess.run(["ncgen", ncgenargs, "-o", str(ncfilename), str(cdlfilename)], check=True)
subprocess.run(["ncgen", ncgenargs, "-o", str(ncfilename), str(filepath)], check=True)
return Dataset(ncfilename, mode=mode)

def tocdl(self,coordvars=False,data=False,outfile=None):
Expand Down

0 comments on commit 43ba78a

Please sign in to comment.