Skip to content

Commit

Permalink
Convert raw strings to Path objects before checking equality. Windows
Browse files Browse the repository at this point in the history
path separators may be different in a raw string. Fixes #34
  • Loading branch information
julianneswinoga committed Nov 26, 2023
1 parent 943e7bc commit 1189c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OATFWGUI/gui_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1189c51

Please sign in to comment.