[ARVADOS] updated: 1a3d59cd7aa80a4ed6ec72aca1633edcbb788880

git at public.curoverse.com git at public.curoverse.com
Tue Oct 21 10:12:04 EDT 2014


Summary of changes:
 sdk/python/arvados/config.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

       via  1a3d59cd7aa80a4ed6ec72aca1633edcbb788880 (commit)
      from  a22d6e6bf03c6f274237f775a4c02122c9ce38ef (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 1a3d59cd7aa80a4ed6ec72aca1633edcbb788880
Author: Ward Vandewege <ward at curoverse.com>
Date:   Tue Oct 21 10:11:43 2014 -0400

    Arvados python SDK: do not blow up when HOME is not set.
    
    No issue #

diff --git a/sdk/python/arvados/config.py b/sdk/python/arvados/config.py
index 2b8374a..ea45a48 100644
--- a/sdk/python/arvados/config.py
+++ b/sdk/python/arvados/config.py
@@ -7,7 +7,10 @@ import os
 import re
 
 _settings = None
-default_config_file = os.environ['HOME'] + '/.config/arvados/settings.conf'
+if os.environ.get('HOME') != None:
+    default_config_file = os.environ['HOME'] + '/.config/arvados/settings.conf'
+else:
+    default_config_file = ''
 
 EMPTY_BLOCK_LOCATOR = 'd41d8cd98f00b204e9800998ecf8427e+0'
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list