Merge remote-tracking branch 'origin/bugfix/igniter-create-missing-dir' into enhancement/clean-igniter-code

This commit is contained in:
Ondřej Samohel 2022-09-26 12:02:51 +02:00
commit 97313abc20
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -804,6 +804,8 @@ class BootstrapRepos:
"""
version = OpenPypeVersion.version_in_str(zip_file.name)
destination_dir = self.data_dir / f"{version.major}.{version.minor}"
if not destination_dir.exists():
destination_dir.mkdir(parents=True)
destination = destination_dir / zip_file.name
if destination.exists():