Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8a78da1a28 | |||
| ec5893581e |
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user