allow overriding of property filename, part 3
authorerickson <erickson@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Fri, 17 Jul 2009 20:14:25 +0000 (20:14 +0000)
committererickson <erickson@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Fri, 17 Jul 2009 20:14:25 +0000 (20:14 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/constrictor/trunk@589 6d9bc8c9-1ec2-4278-b937-99fde70a366f

constrictor/utils.py

index 0aaaa85..5573138 100755 (executable)
@@ -25,11 +25,11 @@ PROPS_FILENAME = 'constrictor.properties'
 
 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()