From c1c6080b18a6e203233be6241669ac287df8933a Mon Sep 17 00:00:00 2001 From: John Evans Date: Sat, 27 Jul 2013 19:31:24 -0400 Subject: [PATCH] Windows if-statement is now a catch-all for config file location. Closes #91, again. --- glymur/lib/config.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/glymur/lib/config.py b/glymur/lib/config.py index 21c1205..764934e 100644 --- a/glymur/lib/config.py +++ b/glymur/lib/config.py @@ -145,9 +145,8 @@ def get_configdir(): if 'HOME' in os.environ and os.name != 'nt': # HOME is set by WinPython to something unusual, so we don't - # want that. + # necessarily want that. return os.path.join(os.environ['HOME'], '.config', 'glymur') - if os.name == 'nt': - # Windows. - return os.path.join(os.path.expanduser('~'), 'glymur') + # Last stand. Should handle windows... others? + return os.path.join(os.path.expanduser('~'), 'glymur')