climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From good...@apache.org
Subject svn commit: r1500906 - /incubator/climate/trunk/rcmet/src/main/python/rcmes/utils/misc.py
Date Mon, 08 Jul 2013 19:42:50 GMT
Author: goodale
Date: Mon Jul  8 19:42:50 2013
New Revision: 1500906

URL: http://svn.apache.org/r1500906
Log:
Progress toward CLIMATE-8.

Updated the parseSubRegions function to expand the path to the subRegionFile.

Modified:
    incubator/climate/trunk/rcmet/src/main/python/rcmes/utils/misc.py

Modified: incubator/climate/trunk/rcmet/src/main/python/rcmes/utils/misc.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/python/rcmes/utils/misc.py?rev=1500906&r1=1500905&r2=1500906&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/python/rcmes/utils/misc.py (original)
+++ incubator/climate/trunk/rcmet/src/main/python/rcmes/utils/misc.py Mon Jul  8 19:42:50
2013
@@ -195,8 +195,9 @@ def parseSubRegions(subRegionConfig):
     """
     subRegions = []
     try:
-        if os.path.exists(subRegionConfig['subRegionFile']):
-            subRegions = readSubRegionsFile(subRegionConfig['subRegionFile'])
+        subRegionFile = os.path.abspath(subRegionConfig['subRegionFile'])
+        if os.path.exists(subRegionFile):
+            subRegions = readSubRegionsFile(subRegionFile)
             
         else:
             print "SubRegion Filepath: [%s] does not exist.  Check your configuration file,
or comment out the SUB_REGION Section." % (subRegionConfig['subRegionFile'],)



Mime
View raw message