mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
drop global XDG_CONFIG_DIR and use environment variables
+ handle string explicit flags
This commit is contained in:
+2
-4
@@ -18,7 +18,6 @@ else:
|
||||
|
||||
|
||||
class Paths:
|
||||
XDG_CONFIG_DIR = ""
|
||||
USER_HOME_DIR = os.path.expanduser("~")
|
||||
|
||||
# TODO: Break this down into getter methods for each path
|
||||
@@ -30,9 +29,8 @@ class Paths:
|
||||
@classmethod
|
||||
def get_config_dir(cls):
|
||||
return (
|
||||
cls.XDG_CONFIG_DIR
|
||||
or os.environ.get("SWINGMUSIC_XDG_CONFIG_DIR")
|
||||
or os.path.realpath(".")
|
||||
# cls.XDG_CONFIG_DIR
|
||||
os.environ.get("SWINGMUSIC_XDG_CONFIG_DIR") or os.path.realpath(".")
|
||||
)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user