[#403] fix of inconsistent config naming

This commit is contained in:
Max Zwiessele 2016-06-22 08:29:42 +01:00
parent 9313b7f894
commit dc5867815a

View file

@ -12,7 +12,7 @@ except ImportError:
import configparser
config = configparser.ConfigParser()
from configparser import NoOptionError
# This is the default configuration file that always needs to be present.
default_file = os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..', 'defaults.cfg'))
@ -23,7 +23,7 @@ local_file = os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..', 'in
# This specifies configurations specific to the user (it is found in the user home directory)
home = os.getenv('HOME') or os.getenv('USERPROFILE')
user_file = os.path.join(home,'.config','gpy', 'user.cfg')
user_file = os.path.join(home,'.config','GPy', 'user.cfg')
# Read in the given files.
config.readfp(open(default_file))