Benjamin-eecs's picture
release v1: 65 held-out tasks, 78 bootstrap records, r2e_local adapter, manifest ae94c40b (part 4)
622387b verified
Raw History Blame Contribute Delete
780 Bytes
diff --git a/confuse.py b/confuse.py
index eb48488..52c472b 100644
--- a/confuse.py
+++ b/confuse.py
@@ -671,6 +671,8 @@ def config_dirs():
if platform.system() == 'Darwin':
paths.append(MAC_DIR)
paths.append(UNIX_DIR_FALLBACK)
+ if 'XDG_CONFIG_DIRS' in os.environ:
+ paths.extend(os.environ['XDG_CONFIG_DIRS'].split(':'))
if UNIX_DIR_VAR in os.environ:
paths.append(os.environ[UNIX_DIR_VAR])
@@ -682,6 +684,8 @@ def config_dirs():
else:
# Assume Unix.
paths.append(UNIX_DIR_FALLBACK)
+ if 'XDG_CONFIG_DIRS' in os.environ:
+ paths.extend(os.environ['XDG_CONFIG_DIRS'].split(':'))
if UNIX_DIR_VAR in os.environ:
paths.append(os.environ[UNIX_DIR_VAR])