Index: suite_leahi/shared/scripts/configuration/application_init.py =================================================================== diff -u -rb4970b1cde5fc382f3dac0c8ab250a260f1e11da -r86e92e4903095be7e338be9e914e9a2384451f9c --- suite_leahi/shared/scripts/configuration/application_init.py (.../application_init.py) (revision b4970b1cde5fc382f3dac0c8ab250a260f1e11da) +++ suite_leahi/shared/scripts/configuration/application_init.py (.../application_init.py) (revision 86e92e4903095be7e338be9e914e9a2384451f9c) @@ -194,8 +194,8 @@ """ Resets a specific setting in System.conf to its default value from System.dflt. """ - source_file = Path.home() / config.CONFIGURATIONS_PATH / "Settings/System.dflt" - target_file = Path.home() / config.CONFIGURATIONS_PATH / "Settings/System.conf" + source_file = configuration_folder_path() + "Settings/System.dflt" + target_file = configuration_folder_path() + "Settings/System.conf" new_value = None search_pattern = f"{setting_key} =" @@ -318,4 +318,16 @@ return value.strip() return None + +def configuration_folder_path(): + """ + Check for Path.home() is /home/denali then return configuration folder location + else return Device configuration folder location + """ + home_dir = str(Path.home()) + if home_dir == "/home/denali": + return "/home/denali/Public/luis/config/configurations/" + else: + return "/opt/leahi/config/configurations/" + \ No newline at end of file Index: suite_leahi/tst_blood_set_auto/test.py =================================================================== diff -u -rb4970b1cde5fc382f3dac0c8ab250a260f1e11da -r86e92e4903095be7e338be9e914e9a2384451f9c --- suite_leahi/tst_blood_set_auto/test.py (.../test.py) (revision b4970b1cde5fc382f3dac0c8ab250a260f1e11da) +++ suite_leahi/tst_blood_set_auto/test.py (.../test.py) (revision 86e92e4903095be7e338be9e914e9a2384451f9c) @@ -69,7 +69,7 @@ channel_id, message_id, handle_blood_set_auto_eject_request ) - conf_path = Path.home() / config.CONFIGURATIONS_PATH / "Alarms/Rejections.conf" + conf_path = application_init.configuration_folder_path() + "Alarms/Rejections.conf" repo = ScopedRejectionRepository(path=conf_path) test.startSection("Blood Set Auto Load and Eject")