Skip to content
Snippets Groups Projects
Commit 1f5c56e6 authored by Jarrod Pas's avatar Jarrod Pas
Browse files

Fixes path bug in shed meta file creation

parent 5d02a193
No related branches found
No related tags found
1 merge request!9Fixes path bug in shed meta file creation
Pipeline #
......@@ -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 = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment