Skip to content
Snippets Groups Projects
Commit 642067ea authored by Christophe Benz's avatar Christophe Benz
Browse files

Display absolute path

parent d1382b8f
No related branches found
No related tags found
No related merge requests found
......@@ -319,16 +319,9 @@ def main():
# Convert only the specified dataset.
assert os.path.isfile(args.source_dir_or_sdmx_file) and \
args.source_dir_or_sdmx_file.endswith(sdmx_file_extension), args.source_dir_or_sdmx_file
git_objects = iter_git_objects_in_sdmx_file(
sdmx_file_path=args.source_dir_or_sdmx_file,
category_tree=category_tree,
validate_json=args.validate_json,
)
write_dataset_pack(
sdmx_file_path=args.source_dir_or_sdmx_file,
git_objects=git_objects,
target_dir=args.target_dir,
)
sdmx_file_path = os.path.abspath(args.source_dir_or_sdmx_file)
git_objects = iter_git_objects_in_sdmx_file(sdmx_file_path, category_tree, args.validate_json)
write_dataset_pack(sdmx_file_path, git_objects, args.target_dir)
repo.object_store.add_object(category_tree)
provider_tree.add(category_json["code"].encode('utf-8'), git_tree_filemode, category_tree.id)
......
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