2 Commits
0.4.4 ... 0.4.6

Author SHA1 Message Date
8a78da1a28 fix minor script match bug 2024-07-09 15:36:58 -07:00
ec5893581e fix small config-map bug 2024-07-09 15:34:19 -07:00

View File

@@ -490,7 +490,7 @@ class ConfigManager:
app_name,
scheme='any',
palette='any',
):
) -> list:
'''
Execute matching scripts in the app's ``call/`` directory.
@@ -513,7 +513,7 @@ class ConfigManager:
call_dir = Path(app_dir, 'call')
if not call_dir.is_dir():
return
return []
prefix_order = [
('none' , 'none'),
@@ -622,7 +622,7 @@ class ConfigManager:
# app's config map points config tails to absolute paths
if config_tail in app_settings['config_map']:
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
))
@@ -659,8 +659,9 @@ class ConfigManager:
# previously set by this script), throw an error.
if from_path.exists() and not from_path.is_symlink():
print(
Fore.RED + \
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))
continue