[open-ils-commits] r589 - constrictor/trunk/constrictor (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jul 17 16:14:29 EDT 2009
Author: erickson
Date: 2009-07-17 16:14:25 -0400 (Fri, 17 Jul 2009)
New Revision: 589
Modified:
constrictor/trunk/constrictor/utils.py
Log:
allow overriding of property filename, part 3
Modified: constrictor/trunk/constrictor/utils.py
===================================================================
--- constrictor/trunk/constrictor/utils.py 2009-07-17 20:10:39 UTC (rev 588)
+++ constrictor/trunk/constrictor/utils.py 2009-07-17 20:14:25 UTC (rev 589)
@@ -25,11 +25,11 @@
props = Properties()
-def loadProps(file):
+def loadProps(file=PROPS_FILENAME):
try:
# parse the properties file
- p = open(PROPS_FILENAME)
+ p = open(file)
Properties.setGlobalProperties(props)
props.load(p)
p.close()
More information about the open-ils-commits
mailing list