Skip to content

Commit

Permalink
added normpath on airgap_update_screen to fix double slashes on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
qlrddev committed Dec 20, 2024
1 parent 2826017 commit 1c674b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/screens/airgap_update_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def on_press(instance):
setattr(AirgapUpdateScreen, f"on_press_{self.id}_button_{row}", on_press)

def on_release(instance):
new_firmware_bin = os.path.join(drive, "firmware.bin")
new_firmware_sig = os.path.join(drive, "firmware.bin.sig")
new_firmware_bin = os.path.normpath(os.path.join(drive, "firmware.bin"))
new_firmware_sig = os.path.normpath(os.path.join(drive, "firmware.bin.sig"))
shutil.copyfile(self.firmware_bin, new_firmware_bin)
shutil.copyfile(self.firmware_sig, new_firmware_sig)

Expand Down

0 comments on commit 1c674b8

Please sign in to comment.