Skip to content

Commit

Permalink
Clean up .bak files after patching.
Browse files Browse the repository at this point in the history
  • Loading branch information
faustomorales committed Jun 10, 2022
1 parent effe12f commit 5d832bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ patch-thirdparty: ## Patch thirdparty module import structure.
find mira/thirdparty/albumentations -name '*.py' -exec sed -i'.bak' -e 's/from albumentations/from mira.thirdparty.albumentations.albumentations/g' {} +
find mira/thirdparty/albumentations -name '*.py' -exec sed -i'.bak' -e 's/from .domain_adaptation import \*//g' {} +
find mira/thirdparty/smp -name '*.py' -exec sed -i'.bak' -e 's/from segmentation_models_pytorch/from mira.thirdparty.smp.segmentation_models_pytorch/g' {} +
find mira/thirdparty -name '*.py.bak' -exec rm {} +

init: patch-thirdparty ## Initialize the development environment.
pip install poetry-dynamic-versioning poetry
Expand Down

0 comments on commit 5d832bb

Please sign in to comment.