Index: suite_leahi/shared/scripts/configuration/application_init.py =================================================================== diff -u -r23037797e0ceee499a15eabb33154da323d904f6 -rb4970b1cde5fc382f3dac0c8ab250a260f1e11da --- suite_leahi/shared/scripts/configuration/application_init.py (.../application_init.py) (revision 23037797e0ceee499a15eabb33154da323d904f6) +++ suite_leahi/shared/scripts/configuration/application_init.py (.../application_init.py) (revision b4970b1cde5fc382f3dac0c8ab250a260f1e11da) @@ -194,9 +194,8 @@ """ Resets a specific setting in System.conf to its default value from System.dflt. """ - base_path = Path.home() / "Public/luis/config/configurations/Settings/" - source_file = base_path / "System.dflt" - target_file = base_path / "System.conf" + source_file = Path.home() / config.CONFIGURATIONS_PATH / "Settings/System.dflt" + target_file = Path.home() / config.CONFIGURATIONS_PATH / "Settings/System.conf" new_value = None search_pattern = f"{setting_key} =" @@ -235,7 +234,7 @@ Reads the configuration file and extracts key-value pairs from the specified section. """ - location = '/home/denali/Public/luis/config/configurations/Instructions/Instructions.conf' + location = Path.home() / config.CONFIGURATIONS_PATH / "Instructions/Instructions.conf" result = {} # Check if file exists to prevent FileNotFoundError @@ -284,8 +283,7 @@ Returns: The Title value if found, otherwise None. """ - location = '/home/denali/Public/luis/config/configurations/Instructions/Instructions.conf' - + location = Path.home() / config.CONFIGURATIONS_PATH / "Instructions/Instructions.conf" # Check if file exists before opening if not os.path.exists(location): return None