From 280f6560513d03f29ff6ee76adadc03a9f9895f5 Mon Sep 17 00:00:00 2001 From: James Hensman Date: Wed, 13 Nov 2013 13:34:10 +0000 Subject: [PATCH] debugging the config paths --- GPy/util/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GPy/util/config.py b/GPy/util/config.py index 960d6690..cd29a8af 100644 --- a/GPy/util/config.py +++ b/GPy/util/config.py @@ -8,11 +8,12 @@ config = ConfigParser.ConfigParser() home = os.getenv('HOME') or os.getenv('USERPROFILE') user_file = os.path.join(home,'.gpy_config.cfg') default_file = os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..', 'gpy_config.cfg')) +print user_file, os.path.isfile(user_file) +print default_file, os.path.isfile(default_file) # 1. check if the user has a ~/.gpy_config.cfg if os.path.isfile(user_file): config.read(user_file) else: # 2. if not, use the default one - path = os.path.dirname(__file__) - config.read(os.path.join(path,default_file)) + config.read(default_file)