Skip to content

Commit fe2a5a9

Browse files
author
Julia Kamelina
authored
remove models directory if exists (#3061)
1 parent 182fe60 commit fe2a5a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/model_tools/setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ def run(self):
6868
str(package_build_dir / 'data'),
6969
)
7070

71+
if (package_build_dir / 'models').exists():
72+
shutil.rmtree(str(package_build_dir / 'models'))
73+
7174
for model_config_path in itertools.chain(
7275
OMZ_ROOT.glob('models/**/model.yml'),
7376
OMZ_ROOT.glob('models/**/composite-model.yml'),

0 commit comments

Comments
 (0)