From 1189c51dd0b72e67e2179f1cd46b91204abd204e Mon Sep 17 00:00:00 2001 From: Julianne Swinoga Date: Sun, 26 Nov 2023 12:49:17 -0500 Subject: [PATCH] Convert raw strings to Path objects before checking equality. Windows path separators may be different in a raw string. Fixes #34 --- OATFWGUI/gui_logic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OATFWGUI/gui_logic.py b/OATFWGUI/gui_logic.py index 66e19e0..1070dfb 100644 --- a/OATFWGUI/gui_logic.py +++ b/OATFWGUI/gui_logic.py @@ -236,7 +236,7 @@ def build_fw(self): self.main_app.wSpn_build.setState(BusyIndicatorState.BUSY) config_dest_path = str(Path(self.logic_state.fw_dir, 'Configuration_local.hpp').resolve()) - if config_dest_path != self.logic_state.config_file_path: + if Path(config_dest_path) != Path(self.logic_state.config_file_path): if QFile.exists(config_dest_path): log.warning(f'Deleting existing configuration file {config_dest_path}') QFile.remove(config_dest_path)