Skip to content

Commit

Permalink
Issue #422: Set exist_ok to True everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmogan committed Jan 9, 2025
1 parent 47519b6 commit 35fb1f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/spack/make-release-repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def generate_external_umbrella_package(self, repo_path, template_dir):
lines += f'\n depends_on("{iname}@{iver} {ivar}")'
lines += '\n'
ipkg_dir = os.path.join(repo_dir, ipkg)
os.makedirs(ipkg_dir)
os.makedirs(ipkg_dir, exist_ok=True)
ipkgpy = os.path.join(ipkg_dir, "package.py")
with open(ipkgpy, 'w') as o:
o.write(lines)
Expand Down Expand Up @@ -257,7 +257,7 @@ def generate_daq_umbrella_package(self, repo_path, template_dir):
lines += '\n'

ipkg_dir = os.path.join(repo_dir, ipkg)
os.makedirs(ipkg_dir)
os.makedirs(ipkg_dir, exist_ok=True)
ipkgpy = os.path.join(ipkg_dir, "package.py")
with open(ipkgpy, 'w') as o:
o.write(lines)
Expand Down

0 comments on commit 35fb1f3

Please sign in to comment.