Windows if-statement is now a catch-all for config file location.

Closes #91, again.
This commit is contained in:
John Evans 2013-07-27 19:31:24 -04:00
commit c1c6080b18

View file

@ -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')