Fixed copying the firmware file in the UF2 flash dialog (use copy instead of copy2). eric7

Mon, 27 Feb 2023 16:21:24 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 27 Feb 2023 16:21:24 +0100
branch
eric7
changeset 9813
4b1096f1a5ee
parent 9812
cf625a86a861
child 9818
7a6e7ff61e6a

Fixed copying the firmware file in the UF2 flash dialog (use copy instead of copy2).

src/eric7/MicroPython/UF2FlashDialog.py file | annotate | diff | comparison | revisions
--- a/src/eric7/MicroPython/UF2FlashDialog.py	Mon Feb 27 16:20:08 2023 +0100
+++ b/src/eric7/MicroPython/UF2FlashDialog.py	Mon Feb 27 16:21:24 2023 +0100
@@ -1002,7 +1002,7 @@
             QCoreApplication.processEvents(
                 QEventLoop.ProcessEventsFlag.ExcludeUserInputEvents
             )
-            shutil.copy2(firmwarePath, volumePath)
+            shutil.copy(firmwarePath, volumePath)
             QThread.sleep(1)
             self.on_refreshButton_clicked()
 

eric ide

mercurial