Skip to content

Commit a4229b8

Browse files
authored
chore(librarian): delete librarian.py as part of post processor clean up (#14897)
This PR cleans ups `librarian.py` if it exists in the generated output since it's not needed after the post processing runs
1 parent c144834 commit a4229b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.generator/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ def _clean_up_files_after_post_processing(
414414
# Safely remove specific files if they exist using pathlib.
415415
Path(f"{output}/{path_to_library}/CHANGELOG.md").unlink(missing_ok=True)
416416
Path(f"{output}/{path_to_library}/docs/CHANGELOG.md").unlink(missing_ok=True)
417+
Path(f"{output}/{path_to_library}/librarian.py").unlink(missing_ok=True)
417418

418419
# The glob loops are already safe, as they do nothing if no files match.
419420
for post_processing_file in glob.glob(

0 commit comments

Comments
 (0)