From 68709cfa77f3c90dc17b9ddf5de555b0d34889fd Mon Sep 17 00:00:00 2001 From: James Hensman Date: Wed, 13 Nov 2013 12:46:02 +0000 Subject: [PATCH] more fiddling with the windows path for config. Where is the windows guru? out playing beach volley? --- GPy/util/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/util/config.py b/GPy/util/config.py index 6fd4d005..960d6690 100644 --- a/GPy/util/config.py +++ b/GPy/util/config.py @@ -7,7 +7,7 @@ config = ConfigParser.ConfigParser() 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') +default_file = os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..', 'gpy_config.cfg')) # 1. check if the user has a ~/.gpy_config.cfg if os.path.isfile(user_file):