[boto] r1327 committed - Allow for setting a "BOTO_CONFIG" environment variable which can be se...

37 views
Skip to first unread message

codesite...@google.com

unread,
Oct 23, 2009, 11:26:53 AM10/23/09
to boto-...@googlegroups.com
Revision: 1327
Author: kopertop
Date: Fri Oct 23 08:26:34 2009
Log: Allow for setting a "BOTO_CONFIG" environment variable which can be
set to
the location of a configuration file to be loaded in addition to all the
standard
boto config paths.

http://code.google.com/p/boto/source/detail?r=1327

Modified:
/trunk/boto/pyami/config.py

=======================================
--- /trunk/boto/pyami/config.py Tue Sep 1 11:40:32 2009
+++ /trunk/boto/pyami/config.py Fri Oct 23 08:26:34 2009
@@ -30,6 +30,8 @@
BotoConfigLocations.append(UserConfigPath)
else:
UserConfigPath = None
+if 'BOTO_CONFIG' in os.environ:
+
BotoConfigLocations.append(os.path.expanduser(os.environ['BOTO_CONFIG']))

class Config(ConfigParser.SafeConfigParser):

Reply all
Reply to author
Forward
0 new messages