mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-27 14:25:16 +02:00
changed how we search for config files on windows
This commit is contained in:
parent
e1e030e72b
commit
df118a404d
1 changed files with 2 additions and 1 deletions
|
|
@ -5,7 +5,8 @@ import ConfigParser
|
|||
import os
|
||||
config = ConfigParser.ConfigParser()
|
||||
|
||||
user_file = os.path.join(os.getenv('HOME'),'.gpy_config.cfg')
|
||||
home = os.getenv('HOME') or os.getenv('USERPROFILE')
|
||||
user_file = os.path.join(home,'.gpy_config.cfg')
|
||||
default_file = os.path.join('..','gpy_config.cfg')
|
||||
|
||||
# 1. check if the user has a ~/.gpy_config.cfg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue