fix small config-map bug

This commit is contained in:
Sam G. 2024-07-09 15:34:19 -07:00
parent 8afdadc263
commit ec5893581e

View File

@ -622,7 +622,7 @@ class ConfigManager:
# app's config map points config tails to absolute paths # app's config map points config tails to absolute paths
if config_tail in app_settings['config_map']: if config_tail in app_settings['config_map']:
to_symlink.append(( to_symlink.append((
abs_pat(Path(app_settings['config_map'][config_tail])), # point from real config path util.absolute_path(Path(app_settings['config_map'][config_tail])), # point from real config path
full_path, # to internal config location full_path, # to internal config location
)) ))
@ -659,8 +659,9 @@ class ConfigManager:
# previously set by this script), throw an error. # previously set by this script), throw an error.
if from_path.exists() and not from_path.is_symlink(): if from_path.exists() and not from_path.is_symlink():
print( print(
Fore.RED + \
f'Symlink target "{from_path}" exists and isn\'t a symlink, NOT overwriting;' \ f'Symlink target "{from_path}" exists and isn\'t a symlink, NOT overwriting;' \
+ ' please first manually remove this file so a symlink can be set.' + ' please first manually remove this file so a symlink can be set.'
) )
links_fail.append((from_path, to_path)) links_fail.append((from_path, to_path))
continue continue