Skip to content

Commit

Permalink
Update schema directory generation
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmartradio committed Nov 22, 2023
1 parent fc313d7 commit 7d05f2a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/lsst/alert/packet/updateSchema.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ def write_schema(schema, version, path):
updated_schema_loc=path[0:-3] + version[0]+'/'+version[2]

if not os.path.exists(updated_schema_loc):
os.mkdir(updated_schema_loc[0:-2])
os.mkdir(updated_schema_loc)
if not os.path.exists(updated_schema_loc[0:-2]):
os.mkdir(updated_schema_loc[0:-2])
os.mkdir(updated_schema_loc)
else:
os.mkdir(updated_schema_loc)

updated_schema_name = schema['namespace'] + '.' + schema['name'] + '.avsc'

Expand Down

0 comments on commit 7d05f2a

Please sign in to comment.