You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No error results if an absolute path is passed in instead.
I'd like to see Context.load_hdf5 detect relative paths client-side and resolve into absolute paths before passing to engines, which should resolve this issue.
What if Context.load_hdf5 always called os.path.abspath() on its filename, to ensure an absolute path? Then it wouldnt have to explicitly detect anything.
One problem here: We've agreed that for these functions, the client might not have access to the same filesystem as the engines.
The choice I originally made here was to pass the filename directly to h5py.File and let h5py handle filenames however it normally handles them. I can see how this is confusing though.
Activity
markkness commentedon Jun 23, 2014
What if
Context.load_hdf5always calledos.path.abspath()on its filename, to ensure an absolute path? Then it wouldnt have to explicitly detect anything.bgrant commentedon Jul 9, 2014
One problem here: We've agreed that for these functions, the client might not have access to the same filesystem as the engines.
The choice I originally made here was to pass the filename directly to
h5py.Fileand leth5pyhandle filenames however it normally handles them. I can see how this is confusing though.