Commit c62447f6 authored by Tomas Farago's avatar Tomas Farago Committed by payno
Browse files

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

parent e7b92167
Pipeline #37053 failed with stages
in 8 minutes and 3 seconds
......@@ -458,7 +458,8 @@ def _insert_frame_data(data, file_path, data_path, where, logger=None):
def recreate_vs(vs_info, vds_file):
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:
vs_shape = vs_node[vs_info.dset_name].shape
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