Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyuba Zehl committed Jun 30, 2023
1 parent 56c7ab3 commit 1cd11d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipeline/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def get_relative_path_for_schemas(self, schemas:List[str], version:str) -> Dict:
relative_path_by_schema = {}
for schema in schemas:
schema_name = os.path.basename(schema).replace('.schema.omi.json', '')
relative_schema_path = os.path.relpath(schema, os.path.join(self.schema_sources, version))
schema_name = ''.join(s[0].upper() + s[1:] for s in schema_name.split())
relative_schema_path = os.path.relpath(schema, start=os.path.join(self.schemas_sources, version)).replace('.schema.omi.json', '')
relative_path_by_schema[schema_name] = relative_schema_path
return relative_path_by_schema

Expand Down

0 comments on commit 1cd11d3

Please sign in to comment.