diff --git a/qt.py b/qt.py index 5776b8a..efafcef 100644 --- a/qt.py +++ b/qt.py @@ -1767,7 +1767,7 @@ class WillSettingsWidget(QWidget): target = os.path.abspath(filename) # se il file esiste, sovrascrive _logger.debug(f"save_to_cwd {self.temp_path},{filename}") - with open(path, "rb") as src, open(target, "wb") as dst: + with open(self.temp_path, "rb") as src, open(target, "wb") as dst: dst.write(src.read()) return target