mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
fix: absolute config path not resolving
+ skip through empty directories in folder browser + handle timestamp table error in migration
This commit is contained in:
+5
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user