Commit 1f5c56e6 authored by Jarrod Pas's avatar Jarrod Pas
Browse files

Fixes path bug in shed meta file creation

parent 5d02a193
Pipeline #1652 passed with stage
in 1 minute and 31 seconds
......@@ -31,7 +31,10 @@ def write_meta_file(meta_path, csv_path, duty_cycle_length=300):
nodes.add(target)
last = max(last, int(slot))
common = path.commonprefix([meta_path, csv_path])
common = path.commonprefix([
path.dirname(meta_path),
path.dirname(csv_path),
])
csv_path = path.relpath(csv_path, common)
meta_data = {
......
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