fix: absolute config path not resolving

+ skip through empty directories in folder browser
+ handle timestamp table error in migration
This commit is contained in:
mungai-njoroge
2024-04-01 11:02:27 +03:00
parent 95a8e9b215
commit 2f6e705c75
9 changed files with 64 additions and 35 deletions
+5 -4
View File
@@ -58,7 +58,7 @@ class HandleArgs:
if not value:
log.error(f"WARNING: {key} not set in environment")
#sys.exit(0)
sys.exit(0)
lines.append(f'{key} = "{value}"\n')
@@ -132,12 +132,13 @@ class HandleArgs:
try:
config_path = ARGS[index + 1]
resolved = os.path.abspath(config_path)
if os.path.exists(config_path):
settings.Paths.set_config_dir(config_path)
if os.path.exists(resolved):
settings.Paths.set_config_dir(resolved)
return
log.warn(f"Config path {config_path} doesn't exist")
log.warn(f"Config path {resolved} doesn't exist")
sys.exit(0)
except IndexError:
pass