mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +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:
@@ -1,7 +1,7 @@
|
||||
import os
|
||||
|
||||
|
||||
def get_xdg_config_dir():
|
||||
def get_xdg_config_dir() -> str:
|
||||
"""
|
||||
Returns the XDG_CONFIG_HOME environment variable if it exists, otherwise
|
||||
returns the default config directory. If none of those exist, returns the
|
||||
@@ -19,3 +19,6 @@ def get_xdg_config_dir():
|
||||
return alt_dir
|
||||
except TypeError:
|
||||
return os.path.expanduser("~")
|
||||
|
||||
# Fallback to current directory
|
||||
return os.path.abspath(".")
|
||||
|
||||
Reference in New Issue
Block a user