Fix missing directory

This commit is contained in:
Jean-Michel Picod
2020-03-12 13:35:43 +01:00
parent dfe901e87c
commit 93bc8da326

View File

@@ -591,6 +591,7 @@ class OpenSKInstaller:
if self.args.programmer in ("pyocd", "nordicdfu", "none"): if self.args.programmer in ("pyocd", "nordicdfu", "none"):
dest_file = "target/{}_merged.hex".format(self.args.board) dest_file = "target/{}_merged.hex".format(self.args.board)
os.makedirs("target", exist_ok=True)
self.create_hex_file(dest_file) self.create_hex_file(dest_file)
if self.args.programmer == "pyocd": if self.args.programmer == "pyocd":