Author: justi9
Date: 2009-08-31 11:29:00 -0400 (Mon, 31 Aug 2009)
New Revision: 3598
Modified:
mgmt/trunk/cumin/bin/cumin
mgmt/trunk/mint/python/mint/main.py
Log:
Make mint config work to cumin file locations
Modified: mgmt/trunk/cumin/bin/cumin
===================================================================
--- mgmt/trunk/cumin/bin/cumin 2009-08-31 15:06:39 UTC (rev 3597)
+++ mgmt/trunk/cumin/bin/cumin 2009-08-31 15:29:00 UTC (rev 3598)
@@ -1,9 +1,5 @@
#!/bin/bash
-if [[ "$CUMIN_HOME" ]]; then
- export MINT_HOME="$CUMIN_HOME"
-fi
-
function die {
kill "$mpid"
kill "$cpid"
Modified: mgmt/trunk/mint/python/mint/main.py
===================================================================
--- mgmt/trunk/mint/python/mint/main.py 2009-08-31 15:06:39 UTC (rev 3597)
+++ mgmt/trunk/mint/python/mint/main.py 2009-08-31 15:29:00 UTC (rev 3598)
@@ -78,6 +78,7 @@
super(MintConfig, self).__init__()
hdef = os.path.normpath("/var/lib/mint")
+ hdef = os.environ.get("CUMIN_HOME", hdef)
self.home = os.environ.get("MINT_HOME", hdef)
if not os.path.isdir(self.home):