Skip to content

Commit

Permalink
Issue #422: Set exist_ok to True for generate_daq_package
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmogan committed Jan 9, 2025
1 parent 9025f33 commit 47519b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/spack/make-release-repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def generate_daq_package(self, repo_path, template_dir):
depends_on_list = self.generate_depends_on_list(cmake_package_list)
lines = lines.replace("XDEPENDSX", depends_on_list)
ipkg_dir = os.path.join(repo_dir, ipkg["name"])
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 47519b6

Please sign in to comment.