mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-11 15:15:15 +02:00
[#403] fix of inconsistent config naming
This commit is contained in:
parent
9313b7f894
commit
dc5867815a
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue