Commit df0bba76 authored by Tomas Farago's avatar Tomas Farago
Browse files

[patch-dark-ref] insure we must change chdir prior to do it

parent 7aed6c56
Pipeline #37049 failed with stages
in 15 seconds
...@@ -449,7 +449,8 @@ def _insert_frame_data(data, file_path, data_path, where, logger=None): ...@@ -449,7 +449,8 @@ def _insert_frame_data(data, file_path, data_path, where, logger=None):
def recreate_vs(vs_info, vds_file): def recreate_vs(vs_info, vds_file):
with cwd_context(): with cwd_context():
os.chdir(os.path.dirname(vds_file)) if os.path.dirname(vds_file) not in ('', None):
os.chdir(os.path.dirname(vds_file))
with HDF5File(vs_info.file_name, mode="r") as vs_node: with HDF5File(vs_info.file_name, mode="r") as vs_node:
vs_shape = vs_node[vs_info.dset_name].shape vs_shape = vs_node[vs_info.dset_name].shape
length = vs_shape[0] length = vs_shape[0]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment