From 6643675f3fd9f681c21a6b8f60d623415e55b0df Mon Sep 17 00:00:00 2001 From: Patrick Avery Date: Wed, 6 Dec 2023 12:00:14 -0600 Subject: [PATCH] Make the default working dir the current directory This fixes an issue where in many places in the code, we assume the working_dir to be a valid path. But if it is `None`, an exception is raised. Signed-off-by: Patrick Avery --- hexrdgui/hexrd_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hexrdgui/hexrd_config.py b/hexrdgui/hexrd_config.py index 777341703..3afa45fdd 100644 --- a/hexrdgui/hexrd_config.py +++ b/hexrdgui/hexrd_config.py @@ -253,7 +253,7 @@ def __init__(self): self.gui_yaml_dict = None self.cached_gui_yaml_dicts = {} self.calibration_flags_order = {} - self.working_dir = None + self.working_dir = '.' self.images_dir = None self.imageseries_dict = {} self.current_imageseries_idx = 0